Write
A FileStream for write-only operations whereby the destination for data is a File.
See also
Inheritors
Properties
Functions
Converts the provided Write stream to an OutputStream.
Closes the FileStream resource, pushing all potentially buffered data to the underlying File for which this stream belongs. Subsequent invocations do nothing.
Closes the resource releasing any system resources that may be allocated to this Closeable. Subsequent invocations do nothing.
Retrieves the current position of the file pointer for which the next operation will occur at.
Sets the FileStream.position to new.
Syncs any updates to the File for which this stream belongs, to the device filesystem. This is akin to fsync/fdatasync.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.