public class Base64Codec extends BaseCodec
Modifier and Type | Field and Description |
---|---|
private static byte[] |
base64Alphabet |
private static byte[] |
lookupBase64Alphabet |
private static byte |
PAD |
Constructor and Description |
---|
Base64Codec() |
Modifier and Type | Method and Description |
---|---|
byte[] |
compress(byte[] input,
CodecOptions options)
Compresses a block of data.
|
byte[] |
decompress(RandomAccessInputStream in,
CodecOptions options)
Decompresses data from the given RandomAccessInputStream.
|
compress, decompress, decompress, decompress, decompress, test
private static final byte PAD
private static byte[] base64Alphabet
private static byte[] lookupBase64Alphabet
public byte[] compress(byte[] input, CodecOptions options) throws FormatException
Codec
input
- The data to be compressed.options
- Options to be used during compression, if appropriate.FormatException
- If input is not a compressed data block of the
appropriate type.public byte[] decompress(RandomAccessInputStream in, CodecOptions options) throws FormatException, IOException
Codec
decompress
in interface Codec
decompress
in class BaseCodec
in
- The stream from which to read compressed data.options
- Options to be used during decompression.FormatException
- If data is not valid compressed data for this
decompressor.IOException
Copyright © 2016 Open Microscopy Environment