|
||||||||||
| 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.MemoryStream
public class MemoryStream
| Field Summary |
|---|
| Fields inherited from class com.caucho.vfs.StreamImpl |
|---|
_nullPath, _path |
| Constructor Summary | |
|---|---|
MemoryStream()
|
|
| Method Summary | |
|---|---|
boolean |
canWrite()
A memory stream is writable. |
void |
destroy()
|
int |
getLength()
|
Path |
getPath()
Returns the Path associated with the stream. |
ReadStream |
openReadAndSaveBuffer()
|
void |
write(byte[] buf,
int offset,
int length,
boolean isEnd)
Writes a buffer to the underlying stream. |
void |
writeToStream(java.io.OutputStream os)
|
| Methods inherited from class com.caucho.vfs.StreamImpl |
|---|
canRead, clearWrite, close, closeWrite, flush, flushBuffer, flushToDisk, getAttribute, getAttributeNames, getAvailable, getFlushOnNewline, getNewline, getReadBuffer, getReadPosition, hasSkip, isClosed, isEof, read, readNonBlock, readTimeout, removeAttribute, seekEnd, seekStart, setAttribute, setPath, setWriteEncoding, skip, write |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MemoryStream()
| Method Detail |
|---|
public Path getPath()
StreamImpl
getPath in class StreamImplpublic boolean canWrite()
canWrite in class StreamImpl
public void write(byte[] buf,
int offset,
int length,
boolean isEnd)
throws java.io.IOException
write in class StreamImplbuffer - the byte array to write.offset - the offset into the byte array.length - the number of bytes to write.isEnd - true when the write is flushing a close.
java.io.IOException
public void writeToStream(java.io.OutputStream os)
throws java.io.IOException
java.io.IOExceptionpublic int getLength()
public ReadStream openReadAndSaveBuffer()
throws java.io.IOException
java.io.IOExceptionpublic void destroy()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||