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, write
clearWrite, closeWrite, flushBuffer, getAttribute, getAttributeNames, getPath, getReadBuffer, isClosed, isEof, isMmapEnabled, isSendfileEnabled, readNonBlock, readTimeout, removeAttribute, seekEnd, setAttribute, setPath, setWriteEncoding, write, writeMmap, writeSendfile
public 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)
LockableStream
lock
in interface LockableStream
public boolean unlock()
LockableStream
unlock
in interface LockableStream
public void seekStart(long pos) throws java.io.IOException
seekStart
in class StreamImpl
java.io.IOException