|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.caucho.vfs.StreamImpl
com.caucho.vfs.VfsStream
com.caucho.vfs.FileWriteStream
public class FileWriteStream
Stream encapsulating FileOutputStream
Field Summary |
---|
Fields inherited from class com.caucho.vfs.StreamImpl |
---|
_nullPath, _path |
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.caucho.vfs.VfsStream |
---|
canRead, canWrite, flush, flushToDisk, getAvailable, getFlushOnNewline, getNewline, getReadPosition, hasSkip, init, openRead, openRead, openReadWrite, openWrite, read, setCloseChildOnClose, setFlushOnNewline, setNewline, skip, write |
Methods inherited from class com.caucho.vfs.StreamImpl |
---|
clearWrite, closeWrite, flushBuffer, getAttribute, getAttributeNames, getPath, getReadBuffer, isClosed, isEof, isMmapEnabled, isSendfileEnabled, readNonBlock, readTimeout, removeAttribute, seekEnd, setAttribute, setPath, setWriteEncoding, write, writeMmap, writeSendfile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
public void close() throws java.io.IOException
close
in class VfsStream
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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |