public class FileOutputStream extends OutputStream
| Constructor and Description |
|---|
FileOutputStream(File file) |
FileOutputStream(FileDescriptor filedescriptor) |
FileOutputStream(String s) |
FileOutputStream(String s,
boolean flag) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected void |
finalize()
Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
|
void |
flush() |
FileDescriptor |
getFD() |
void |
write(byte[] abyte0) |
void |
write(byte[] abyte0,
int i,
int j) |
void |
write(int i) |
public FileOutputStream(File file) throws IOException
file - ?IOException - ?public FileOutputStream(FileDescriptor filedescriptor)
filedescriptor - ?public FileOutputStream(String s) throws IOException
s - ?IOException - ?public FileOutputStream(String s, boolean flag) throws IOException
s - ?flag - ?IOException - ?public void close()
throws IOException
close in class OutputStreamIOException - ?protected void finalize()
throws IOException
Objectfinalize method to dispose of
system resources or to perform other cleanup.
Any exception thrown by the finalize method causes
the finalization of this object to be halted, but is otherwise
ignored.
The finalize method in Object does
nothing.
finalize in class ObjectIOExceptionpublic final FileDescriptor getFD() throws IOException
IOException - ?public void flush()
throws IOException
flush in class OutputStreamIOException - ?public void write(int i)
throws IOException
write in class OutputStreami - ?IOException - ?public void write(byte[] abyte0)
throws IOException
write in class OutputStreamabyte0 - ?IOException - ?public void write(byte[] abyte0,
int i,
int j)
throws IOException
write in class OutputStreamabyte0 - ?i - ?j - ?IOException - ?