com.caucho.vfs
Class TempStream
java.lang.Object
|
+--com.caucho.vfs.StreamImpl
|
+--com.caucho.vfs.TempStream
- public class TempStream
- extends StreamImpl
Methods inherited from class com.caucho.vfs.StreamImpl |
canRead, getAttribute, getAttributeNames, getAvailable, getFlushOnNewline, getNewline, getPath, getReadPosition, read, removeAttribute, setAttribute, setPath, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TempStream
public TempStream(Path backingDir)
openWrite
public void openWrite()
changeToBackingFile
public void changeToBackingFile(int index)
throws java.io.IOException
canWrite
public boolean canWrite()
- Overrides:
canWrite
in class StreamImpl
write
public void write(byte[] buf,
int offset,
int length)
throws java.io.IOException
- Overrides:
write
in class StreamImpl
flush
public void flush()
throws java.io.IOException
- Overrides:
flush
in class StreamImpl
close
public void close()
throws java.io.IOException
- Overrides:
close
in class StreamImpl
openRead
public ReadStream openRead()
throws java.io.IOException
openRead
public ReadStream openRead(boolean free)
throws java.io.IOException
getLength
public int getLength()
openRead
public ReadStream openRead(ReadStream s)
throws java.io.IOException
clearWrite
public void clearWrite()
- Overrides:
clearWrite
in class StreamImpl
discard
public void discard()
destroy
public void destroy()