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 void
close()
private void
close0(java.io.FileDescriptor fd)
java.io.FileDescriptor
getFD()
private void
open(java.io.FileDescriptor fd, java.lang.String name, boolean append)
private int
open0(java.io.FileDescriptor fd, java.lang.String name, boolean append)
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
private void
writeBytes(java.io.FileDescriptor fd, byte[] b, int off, int len)
void
writeInt(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:
write
in 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:
write
in classjava.io.OutputStream
-
write
public void write(byte[] b, int off, int len)
- Overrides:
write
in classjava.io.OutputStream
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
- Specified by:
close
in interfacejava.io.Closeable
- Overrides:
close
in classjava.io.OutputStream
-
getFD
public final java.io.FileDescriptor getFD() throws java.io.IOException
- Throws:
java.io.IOException
-
-