java.io.FileOutputStream (JDK 1.0)
This class is a subclass of OutputStream that writes data to a file specified by name, or by a File or FileDescriptor object. write() writes a byte or array of bytes to the file. To write binary data, you typically use this class in conjunction with a BufferedOutputStream and a DataOutputStream. To write text, you typically use it with a PrintWriter, BufferedWriter, and an OutputStreamWriter. Use close() to close a FileOutputStream when no further output will be written to it.
public classFileOutputStreamextends OutputStream { //Public ConstructorspublicFileOutputStream(Stringname) throws IOException; 1.1 publicFileOutputStream(Stringname, booleanappend) throws IOException; publicFileOutputStream(Filefile) throws IOException; publicFileOutputStream(FileDescriptorfdObj); //Public Instance Methodspublic native voidclose() throws IOException; //Overrides OutputStreampublic final FileDescriptorgetFD() throws IOException; public native voidwrite(intb) throws IOException; //Defines OutputStreampublic voidwrite(byte[]b) throws IOException; //Overrides OutputStreampublic voidwrite(byte[]b, intoff, intlen) throws IOException; //Overrides OutputStream//Protected Instance Methodsprotected voidfinalize() throws IOException; //Overrides Object}
Hierarchy:
Object->OutputStream->FileOutputStream