|
||||||||||
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.Crc64Stream
public class Crc64Stream
Field Summary |
---|
Fields inherited from class com.caucho.vfs.StreamImpl |
---|
_nullPath, _path |
Constructor Summary | |
---|---|
Crc64Stream()
|
|
Crc64Stream(StreamImpl next)
|
Method Summary | |
---|---|
boolean |
canRead()
Returns true if the stream can read. |
boolean |
canWrite()
Returns true if the stream can write. |
void |
clearWrite()
Clears any buffered values in the write. |
void |
close()
Closes the stream output. |
void |
closeWrite()
Closes the write output. |
void |
flush()
Flushes the write output. |
long |
getCRC()
Returns the CRC value. |
Path |
getPath()
Returns the path. |
void |
init(StreamImpl next)
Initialize the filter with a new stream. |
int |
read(byte[] buffer,
int offset,
int length)
Reads a buffer from the underlying stream. |
void |
setPath(Path path)
Sets the path. |
void |
write(byte[] buffer,
int offset,
int length,
boolean isEnd)
Writes a buffer to the underlying stream. |
Methods inherited from class com.caucho.vfs.StreamImpl |
---|
flushBuffer, flushToDisk, getAttribute, getAttributeNames, getAvailable, getFlushOnNewline, getNewline, getReadBuffer, getReadPosition, hasSkip, isClosed, isEof, isMmapEnabled, isSendfileEnabled, readNonBlock, readTimeout, removeAttribute, seekEnd, seekStart, setAttribute, setWriteEncoding, skip, write, writeMmap, writeSendfile |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Crc64Stream(StreamImpl next)
public Crc64Stream()
Method Detail |
---|
public void init(StreamImpl next)
public long getCRC()
public boolean canRead()
canRead
in class StreamImpl
public int read(byte[] buffer, int offset, int length) throws java.io.IOException
read
in class StreamImpl
buffer
- the byte array to read.offset
- the offset into the byte array.length
- the number of bytes to read.
java.io.IOException
public boolean canWrite()
canWrite
in class StreamImpl
public void write(byte[] buffer, int offset, int length, boolean isEnd) throws java.io.IOException
write
in class StreamImpl
buffer
- 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 clearWrite()
clearWrite
in class StreamImpl
public void flush() throws java.io.IOException
flush
in class StreamImpl
java.io.IOException
public void closeWrite() throws java.io.IOException
closeWrite
in class StreamImpl
java.io.IOException
public Path getPath()
getPath
in class StreamImpl
public void setPath(Path path)
setPath
in class StreamImpl
public void close() throws java.io.IOException
close
in class StreamImpl
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |