| java.lang.Object java.io.OutputStream sun.io.FDOutputStream
Constructor Summary | |
public | FDOutputStream(String name) Creates an output file stream to write to the file with the
specified name. | public | FDOutputStream(String name, boolean append) Creates an output file with the specified system dependent
file name. | public | FDOutputStream(FileDescriptor fdObj) Creates an output file stream to write to the specified file descriptor. |
Method Summary | |
native public void | close() Closes this file output stream and releases any system resources
associated with this stream. | protected void | finalize() Ensures that the close method of this file output stream is
called when there are no more references to this stream. | final public FileDescriptor | getFD() Returns the file descriptor associated with this stream. | native public void | open(String name) Opens a file, with the specified name, for writing. | native public void | openAppend(String name) Opens a file, with the specified name, for appending. | native public void | write(int b) Writes the specified byte to this file output stream. | public void | write(byte b) Writes b.length bytes from the specified byte array
to this file output stream. | public void | write(byte b, int off, int len) Writes len bytes from the specified byte array
starting at offset off to this file output stream. | native public void | writeBytes(byte b, int off, int len) Writes a sub array as a sequence of bytes. |
FDOutputStream | public FDOutputStream(String name, boolean append) throws IOException(Code) | | Creates an output file with the specified system dependent
file name.
Parameters: name - the system dependent file name exception: IOException - If the file is not found. since: JDK1.1 |
close | native public void close() throws IOException(Code) | | Closes this file output stream and releases any system resources
associated with this stream.
exception: IOException - if an I/O error occurs. since: JDK1.0 |
open | native public void open(String name) throws IOException(Code) | | Opens a file, with the specified name, for writing.
Parameters: name - name of file to be opened |
openAppend | native public void openAppend(String name) throws IOException(Code) | | Opens a file, with the specified name, for appending.
Parameters: name - name of file to be opened |
write | native public void write(int b) throws IOException(Code) | | Writes the specified byte to this file output stream.
Parameters: b - the byte to be written. exception: IOException - if an I/O error occurs. since: JDK1.0 |
write | public void write(byte b) throws IOException(Code) | | Writes b.length bytes from the specified byte array
to this file output stream.
Parameters: b - the data. exception: IOException - if an I/O error occurs. since: JDK1.0 |
write | public void write(byte b, int off, int len) throws IOException(Code) | | Writes len bytes from the specified byte array
starting at offset off to this file output stream.
Parameters: b - the data. Parameters: off - the start offset in the data. Parameters: len - the number of bytes to write. exception: IOException - if an I/O error occurs. since: JDK1.0 |
writeBytes | native public void writeBytes(byte b, int off, int len) throws IOException(Code) | | Writes a sub array as a sequence of bytes.
Parameters: b - the data to be written Parameters: off - the start offset in the data Parameters: len - the number of bytes that are written exception: IOException - If an I/O error has occurred. |
|
|