write
Writes the entire contents of buf to the File for which this stream belongs. Bytes are written starting at the current FileStream.position. The FileStream.position will automatically increment by the number of bytes that were written.
Parameters
The array of data to write.
Throws
If an I/O error occurs, or the stream is closed.
Writes len number of bytes from buf, starting at index offset, to the File for which this stream belongs. Bytes are written starting at the current FileStream.position. The FileStream.position will automatically increment by the number of bytes that were written.
Parameters
The array of data to write.
The index in buf to start at when writing data.
Throws
If an I/O error occurs, or the stream is closed.
Writes the entire contents of buf to the File for which this stream belongs. Bytes are written starting at the specified position. The FileStream.position will not be changed. If the specified position is greater than the current size, then the File is grown to accommodate the new data. The values of any bytes between the previous end-of-file and the newly written data are unspecified.
Parameters
The array of data to write.
The file offset (from the start of the File) to begin writing at.
Throws
If position is less than 0.
If an I/O error occurs, or the stream is closed.
Writes len number of bytes from buf, starting at index offset, to the File for which this stream belongs. Bytes are written starting at the specified position. The FileStream.position will not be changed. If the specified position is greater than the current size, then the File is grown to accommodate the new data. The values of any bytes between the previous end-of-file and the newly written data are unspecified.
Parameters
The array of data to write.
The file offset (from the start of the File) to begin writing at.
Throws
If position is less than 0.
If an I/O error occurs, or the stream is closed.
Writes the entire contents of buf to the File for which this stream belongs. Bytes are written starting at the current FileStream.position. The FileStream.position will automatically increment by the number of bytes that were written.
Parameters
The buffer of data to write.
Throws
If an I/O error occurs, or the stream is closed.
Writes len number of bytes from buf, starting at index offset, to the File for which this stream belongs. Bytes are written starting at the current FileStream.position. The FileStream.position will automatically increment by the number of bytes that were written.
Parameters
The buffer of data to write.
The index in buf to start at when writing data.
Throws
If an I/O error occurs, or the stream is closed.
Writes the entire contents of buf to the File for which this stream belongs. Bytes are written starting at the specified position. The FileStream.position will not be changed. If the specified position is greater than the current size, then the File is grown to accommodate the new data. The values of any bytes between the previous end-of-file and the newly written data are unspecified.
Parameters
The buffer of data to write.
The file offset (from the start of the File) to begin writing at.
Throws
If position is less than 0.
If an I/O error occurs, or the stream is closed.
Writes len number of bytes from buf, starting at index offset, to the File for which this stream belongs. Bytes are written starting at the specified position. The FileStream.position will not be changed. If the specified position is greater than the current size, then the File is grown to accommodate the new data. The values of any bytes between the previous end-of-file and the newly written data are unspecified.
Parameters
The buffer of data to write.
The file offset (from the start of the File) to begin writing at.
Throws
If position is less than 0.
If an I/O error occurs, or the stream is closed.
Writes the available contents of src to the File for which this stream belongs. Bytes are written starting at the current FileStream.position. The FileStream.position will automatically increment by the number of bytes that were written.
Otherwise, this function behaves as specified in WritableByteChannel.
Writes the available contents of src to the File for which this stream belongs. Bytes are written starting at the specified position. The FileStream.position will not be changed. If the specified position is greater than the current size, then the File is grown to accommodate the new data. The values of any bytes between the previous end-of-file and the newly written data are unspecified.
Otherwise, this function behaves as specified in java.nio.channels.FileChannel.write.
Parameters
The buffer of data to write.
The file offset (from the start of the File) to begin writing at.
Throws
If position is less than 0.
If an I/O error occurs.