Class TFileOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- de.mirkosertic.bytecoder.classlib.java.io.TFileOutputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable
public class TFileOutputStream extends java.io.OutputStream
-
-
Constructor Summary
Constructors Constructor Description TFileOutputStream(java.io.File file)TFileOutputStream(java.io.FileDescriptor fdObj)TFileOutputStream(java.io.File file, boolean append)TFileOutputStream(java.lang.String name)TFileOutputStream(java.lang.String name, boolean append)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()private voidclose0(java.io.FileDescriptor fd)java.io.FileDescriptorgetFD()private voidopen(java.io.FileDescriptor fd, java.lang.String name, boolean append)private intopen0(java.io.FileDescriptor fd, java.lang.String name, boolean append)voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)private voidwriteBytes(java.io.FileDescriptor fd, byte[] b, int off, int len)voidwriteInt(java.io.FileDescriptor fd, int b)
-
-
-
Constructor Detail
-
TFileOutputStream
public TFileOutputStream(java.lang.String name) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
TFileOutputStream
public TFileOutputStream(java.lang.String name, boolean append) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
TFileOutputStream
public TFileOutputStream(java.io.File file) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
TFileOutputStream
public TFileOutputStream(java.io.File file, boolean append) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
TFileOutputStream
public TFileOutputStream(java.io.FileDescriptor fdObj)
-
-
Method Detail
-
open0
private int open0(java.io.FileDescriptor fd, java.lang.String name, boolean append) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
close0
private void close0(java.io.FileDescriptor fd)
-
open
private void open(java.io.FileDescriptor fd, java.lang.String name, boolean append) throws java.io.FileNotFoundException- Throws:
java.io.FileNotFoundException
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein classjava.io.OutputStream- Throws:
java.io.IOException
-
writeInt
public void writeInt(java.io.FileDescriptor fd, int b) throws java.io.IOException- Throws:
java.io.IOException
-
writeBytes
private void writeBytes(java.io.FileDescriptor fd, byte[] b, int off, int len)
-
write
public void write(byte[] b)
- Overrides:
writein classjava.io.OutputStream
-
write
public void write(byte[] b, int off, int len)- Overrides:
writein classjava.io.OutputStream
-
close
public void close()
- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Overrides:
closein classjava.io.OutputStream
-
getFD
public final java.io.FileDescriptor getFD() throws java.io.IOException- Throws:
java.io.IOException
-
-