Class TFileOutputStream
java.lang.Object
java.io.OutputStream
de.mirkosertic.bytecoder.classlib.java.io.TFileOutputStream
- All Implemented Interfaces:
Closeable,Flushable,AutoCloseable
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate final FileDescriptorprivate final String -
Constructor Summary
ConstructorsConstructorDescriptionTFileOutputStream(File file) TFileOutputStream(FileDescriptor fdObj) TFileOutputStream(File file, boolean append) TFileOutputStream(String name) TFileOutputStream(String name, boolean append) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()private voidclose0(FileDescriptor fd) final FileDescriptorgetFD()private voidopen(FileDescriptor fd, String name, boolean append) private intopen0(FileDescriptor fd, String name, boolean append) voidwrite(byte[] b) voidwrite(byte[] b, int off, int len) voidwrite(int b) private voidwriteBytes(FileDescriptor fd, byte[] b, int off, int len) voidwriteInt(FileDescriptor fd, int b) Methods inherited from class java.io.OutputStream
flush, nullOutputStream
-
Field Details
-
fd
-
path
-
closed
private volatile boolean closed
-
-
Constructor Details
-
TFileOutputStream
- Throws:
FileNotFoundException
-
TFileOutputStream
- Throws:
FileNotFoundException
-
TFileOutputStream
- Throws:
FileNotFoundException
-
TFileOutputStream
- Throws:
FileNotFoundException
-
TFileOutputStream
-
-
Method Details
-
open0
- Throws:
FileNotFoundException
-
close0
-
open
- Throws:
FileNotFoundException
-
write
- Specified by:
writein classOutputStream- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeBytes
-
write
public void write(byte[] b) - Overrides:
writein classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
writein classOutputStream
-
close
public void close()- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Overrides:
closein classOutputStream
-
getFD
- Throws:
IOException
-