public class FileWriteStream extends VfsStream implements LockableStream
_nullPath, _path| Constructor and Description |
|---|
FileWriteStream(java.io.FileOutputStream fos)
Create a new FileWriteStream based on the java.io.* stream.
|
FileWriteStream(java.io.FileOutputStream fos,
Path path)
Create a new FileWriteStream based on the java.io.* stream.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the underlying stream.
|
boolean |
lock(boolean shared,
boolean block)
Lock the shared advisory lock.
|
void |
seekStart(long pos)
Seeks based on the start.
|
boolean |
unlock()
Unlock the advisory lock.
|
canRead, canWrite, flush, flushToDisk, getAvailable, getFlushOnNewline, getNewline, getReadPosition, hasSkip, init, openRead, openRead, openReadWrite, openWrite, read, setCloseChildOnClose, setFlushOnNewline, setNewline, skip, toString, writeclearWrite, closeWrite, flushBuffer, getAttribute, getAttributeNames, getPath, getReadBuffer, isClosed, isEof, isMmapEnabled, isSendfileEnabled, readNonBlock, readTimeout, removeAttribute, seekEnd, setAttribute, setPath, setWriteEncoding, write, writeMmap, writeSendfilepublic FileWriteStream(java.io.FileOutputStream fos)
fos - the underlying file output stream.public FileWriteStream(java.io.FileOutputStream fos,
Path path)
fos - the underlying file output stream.path - the associated Path.public void close()
throws java.io.IOException
public boolean lock(boolean shared,
boolean block)
LockableStreamlock in interface LockableStreampublic boolean unlock()
LockableStreamunlock in interface LockableStreampublic void seekStart(long pos)
throws java.io.IOException
seekStart in class StreamImpljava.io.IOException