|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.vfs.StreamImpl | +--com.caucho.vfs.StringStream
Fields inherited from class com.caucho.vfs.StreamImpl |
nullPath, path |
Method Summary | |
boolean |
canRead()
Returns true if this is a read stream. |
int |
getAvailable()
Returns the number of bytes available without blocking. |
Path |
getPath()
Returns the Path associated with the stream. |
static ReadStream |
open(java.lang.String string)
|
int |
read(byte[] buf,
int offset,
int length)
Reads the next chunk from the stream. |
Methods inherited from class com.caucho.vfs.StreamImpl |
canWrite, clearWrite, close, flush, getAttribute, getAttributeNames, getFlushOnNewline, getNewline, getReadPosition, hasSkip, removeAttribute, setAttribute, setPath, skip, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static ReadStream open(java.lang.String string)
public Path getPath()
StreamImpl
getPath
in class StreamImpl
public boolean canRead()
StreamImpl
canRead
in class StreamImpl
public int read(byte[] buf, int offset, int length) throws java.io.IOException
StreamImpl
read
in class StreamImpl
com.caucho.vfs.StreamImpl
buffer
- byte array receiving the data.offset
- starting offset into the array.length
- number of bytes to read.public int getAvailable() throws java.io.IOException
StreamImpl
getAvailable
in class StreamImpl
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |