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 boolean
private final FileDescriptor
private 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 TypeMethodDescriptionvoid
close()
private void
close0
(FileDescriptor fd) final FileDescriptor
getFD()
private void
open
(FileDescriptor fd, String name, boolean append) private int
open0
(FileDescriptor fd, String name, boolean append) void
write
(byte[] b) void
write
(byte[] b, int off, int len) void
write
(int b) private void
writeBytes
(FileDescriptor fd, byte[] b, int off, int len) void
writeInt
(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:
write
in classOutputStream
- Throws:
IOException
-
writeInt
- Throws:
IOException
-
writeBytes
-
write
public void write(byte[] b) - Overrides:
write
in classOutputStream
-
write
public void write(byte[] b, int off, int len) - Overrides:
write
in classOutputStream
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
-
getFD
- Throws:
IOException
-