public class SimpleZipFileDataEncoder extends Object implements FileDataEncoder
Modifier and Type | Field and Description |
---|---|
static int |
EOF_MARKER |
Constructor and Description |
---|
SimpleZipFileDataEncoder(OutputStream outputStream) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
encode(byte[] inputBuffer,
int offset,
int length)
Encode a buffer bytes from a Zip-file.
|
long |
getBytesWritten() |
public static final int EOF_MARKER
public SimpleZipFileDataEncoder(OutputStream outputStream)
public void encode(byte[] inputBuffer, int offset, int length) throws IOException
FileDataEncoder
encode
in interface FileDataEncoder
inputBuffer
- Bytes to be encoded.offset
- Offset in the buffer of the bytes to be encoded.length
- Number of bytes to be encoded.IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
IOException
public long getBytesWritten()
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.