public class Crc64Stream extends StreamImpl
_nullPath, _path| Constructor and Description |
|---|
Crc64Stream() |
Crc64Stream(StreamImpl next) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
flushBuffer, flushToDisk, getAttribute, getAttributeNames, getAvailable, getFlushOnNewline, getNewline, getReadBuffer, getReadPosition, hasSkip, isClosed, isEof, isMmapEnabled, isSendfileEnabled, readNonBlock, readTimeout, removeAttribute, seekEnd, seekStart, setAttribute, setWriteEncoding, skip, write, writeMmap, writeSendfilepublic Crc64Stream(StreamImpl next)
public Crc64Stream()
public void init(StreamImpl next)
public long getCRC()
public boolean canRead()
canRead in class StreamImplpublic int read(byte[] buffer,
int offset,
int length)
throws java.io.IOException
read in class StreamImplbuffer - the byte array to read.offset - the offset into the byte array.length - the number of bytes to read.java.io.IOExceptionpublic boolean canWrite()
canWrite in class StreamImplpublic void write(byte[] buffer,
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.IOExceptionpublic void clearWrite()
clearWrite in class StreamImplpublic void flush()
throws java.io.IOException
flush in class StreamImpljava.io.IOExceptionpublic void closeWrite()
throws java.io.IOException
closeWrite in class StreamImpljava.io.IOExceptionpublic Path getPath()
getPath in class StreamImplpublic void setPath(Path path)
setPath in class StreamImplpublic void close()
throws java.io.IOException
close in class StreamImpljava.io.IOException