| java.lang.Object com.caucho.vfs.StreamImpl com.caucho.vfs.Crc64Stream
Method Summary | |
public boolean | canRead() Returns true if the stream can read. | public boolean | canWrite() Returns true if the stream can write. | public void | clearWrite() Clears any buffered values in the write. | public void | close() Closes the stream output. | public void | closeWrite() Closes the write output. | public void | flush() Flushes the write output. | public long | getCRC() Returns the CRC value. | public Path | getPath() Returns the path. | public void | init(StreamImpl next) Initialize the filter with a new stream. | public int | read(byte[] buffer, int offset, int length) Reads a buffer from the underlying stream. | public void | setPath(Path path) Sets the path. | public void | write(byte[] buffer, int offset, int length, boolean isEnd) Writes a buffer to the underlying stream. |
Crc64Stream | public Crc64Stream()(Code) | | |
canRead | public boolean canRead()(Code) | | Returns true if the stream can read.
|
canWrite | public boolean canWrite()(Code) | | Returns true if the stream can write.
|
clearWrite | public void clearWrite()(Code) | | Clears any buffered values in the write.
|
getCRC | public long getCRC()(Code) | | Returns the CRC value.
|
getPath | public Path getPath()(Code) | | Returns the path.
|
init | public void init(StreamImpl next)(Code) | | Initialize the filter with a new stream.
|
read | public int read(byte[] buffer, int offset, int length) throws IOException(Code) | | Reads a buffer from the underlying stream.
Parameters: buffer - the byte array to read. Parameters: offset - the offset into the byte array. Parameters: length - the number of bytes to read. |
setPath | public void setPath(Path path)(Code) | | Sets the path.
|
write | public void write(byte[] buffer, int offset, int length, boolean isEnd) throws IOException(Code) | | Writes a buffer to the underlying stream.
Parameters: buffer - the byte array to write. Parameters: offset - the offset into the byte array. Parameters: length - the number of bytes to write. Parameters: isEnd - true when the write is flushing a close. |
Methods inherited from com.caucho.vfs.StreamImpl | public boolean canRead()(Code)(Java Doc) public boolean canWrite()(Code)(Java Doc) public void clearWrite()(Code)(Java Doc) public void close() throws IOException(Code)(Java Doc) public void closeWrite() throws IOException(Code)(Java Doc) public void flush() throws IOException(Code)(Java Doc) public void flushBuffer() throws IOException(Code)(Java Doc) public void flushToDisk() throws IOException(Code)(Java Doc) public Object getAttribute(String name) throws IOException(Code)(Java Doc) public Iterator getAttributeNames() throws IOException(Code)(Java Doc) public int getAvailable() throws IOException(Code)(Java Doc) public boolean getFlushOnNewline()(Code)(Java Doc) public byte[] getNewline()(Code)(Java Doc) public Path getPath()(Code)(Java Doc) public byte[] getReadBuffer()(Code)(Java Doc) public long getReadPosition()(Code)(Java Doc) public boolean hasSkip()(Code)(Java Doc) public int read(byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc) public int readNonBlock(byte[] buffer, int offset, int length) throws IOException(Code)(Java Doc) public int readTimeout(byte[] buffer, int offset, int length, long timeout) throws IOException(Code)(Java Doc) public void removeAttribute(String name) throws IOException(Code)(Java Doc) public void seekEnd(long offset) throws IOException(Code)(Java Doc) public void seekStart(long offset) throws IOException(Code)(Java Doc) public void setAttribute(String name, Object value) throws IOException(Code)(Java Doc) public void setPath(Path path)(Code)(Java Doc) public void setWriteEncoding(String encoding)(Code)(Java Doc) public long skip(long n) throws IOException(Code)(Java Doc) public void write(byte[] buffer, int offset, int length, boolean isEnd) throws IOException(Code)(Java Doc) public boolean write(byte[] buf1, int off1, int len1, byte[] buf2, int off2, int len2, boolean isEnd) throws IOException(Code)(Java Doc)
|
|
|