public class StoredFileDataDecoder extends Object implements FileDataDecoder
Constructor and Description |
---|
StoredFileDataDecoder(InputStream inputStream,
long dataSize) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
int |
decode(byte[] outputBuffer,
int offset,
int length)
Decode a buffer bytes from a Zip-file.
|
long |
getBytesRead()
Return the number of encoded bytes read in.
|
long |
getBytesWritten()
Return the number of decoded bytes written out.
|
public StoredFileDataDecoder(InputStream inputStream, long dataSize)
public int decode(byte[] outputBuffer, int offset, int length) throws IOException
FileDataDecoder
decode
in interface FileDataDecoder
outputBuffer
- Buffer to write decoded bytes into.offset
- offset in the buffer to write the decoded byteslength
- number of bytes that can be read into the bufferIOException
public void close()
close
in interface Closeable
close
in interface AutoCloseable
public long getBytesRead()
FileDataDecoder
getBytesRead
in interface FileDataDecoder
public long getBytesWritten()
FileDataDecoder
getBytesWritten
in interface FileDataDecoder
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.