public class DatastoreWriteStream extends VfsStream implements LockableStream
_nullPath, _path| Constructor and Description |
|---|
DatastoreWriteStream(DatastoreOutputStream fos)
Create a new FileWriteStream based on the java.io.* stream.
|
DatastoreWriteStream(DatastoreOutputStream 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 DatastoreWriteStream(DatastoreOutputStream fos)
fos - the underlying file output stream.public DatastoreWriteStream(DatastoreOutputStream 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