java.io.FileOutputStream
A file output stream is an output stream for writing data to a File or to a FileDescriptor. Whether or not a file is available or may be created depends upon the underlying platform.
FileOutputStream is meant for writing streams of raw bytes such as image data. For writing streams of characters, consider using FileWriter.
Some methods of FileOutputStream class
close(): This method closes this file output stream and releases any system resources associated with this stream.
getChannel(): This method returns the unique FileChannelobject associated with this file output stream.
getFD(): This method returns the file descriptor associated with this stream.
write(byte[]): This method writes b.length bytes from the specified byte array to this file output stream.
write(int): This method writes the specified byte to this file output stream.
write(byte[], int, int): This method writes len bytes from the specified byte array starting at offset off to this file output stream.
No comments:
Post a Comment