public class FileOutputStream extends OutputStream
Constructor and Description |
---|
FileOutputStream(File file) |
FileOutputStream(File file,
boolean append) |
FileOutputStream(FileDescriptor fdObj) |
FileOutputStream(String path) |
FileOutputStream(String path,
boolean append) |
public FileOutputStream(String path) throws SecurityException, FileNotFoundException
public FileOutputStream(String path, boolean append) throws SecurityException, FileNotFoundException
public FileOutputStream(File file, boolean append) throws SecurityException, FileNotFoundException
public FileOutputStream(File file) throws SecurityException, FileNotFoundException
public FileOutputStream(FileDescriptor fdObj) throws SecurityException
SecurityException
public final FileDescriptor getFD() throws IOException
IOException
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] b) throws IOException, NullPointerException
write
in class OutputStream
IOException
NullPointerException
public void write(byte[] b, int off, int len) throws IOException, NullPointerException, ArrayIndexOutOfBoundsException
write
in class OutputStream
IOException
NullPointerException
ArrayIndexOutOfBoundsException
public void close() throws IOException
close
in class OutputStream
IOException
protected void finalize() throws IOException
Object
finalize
in class Object
IOException
public void flush() throws IOException
flush
in class OutputStream
IOException