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, writeSendfile
public Crc64Stream(StreamImpl next)
public Crc64Stream()
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