public class Base64Codec extends BaseCodec implements Codec
| Constructor and Description |
|---|
Base64Codec() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
base64Decode(java.lang.String s)
Decodes a Base64 String by converting to bytes and passing to the
decompress method.
|
byte[] |
compress(byte[] input,
int x,
int y,
int[] dims,
java.lang.Object options)
Encodes a block of data into Base64.
|
byte[] |
decompress(byte[] base64Data,
java.lang.Object options)
Decompresses a block of data.
|
static void |
main(java.lang.String[] args)
Main testing method. test is inherited from parent class.
|
compress, decompress, decompress, decompress, testclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompress, decompress, decompress, decompresspublic byte[] compress(byte[] input,
int x,
int y,
int[] dims,
java.lang.Object options)
throws loci.formats.FormatException
public byte[] decompress(byte[] base64Data,
java.lang.Object options)
throws loci.formats.FormatException
decompress in interface Codecbase64Data - the data to be decodedoptions - Options to be used during decompression.loci.formats.FormatException - if data is not valid Base64 datapublic byte[] base64Decode(java.lang.String s)
throws loci.formats.FormatException
s - the String to be decodedloci.formats.FormatException - if s is not valid Base64 data.public static void main(java.lang.String[] args)
throws loci.formats.FormatException
args - ignoredloci.formats.FormatException - Can only occur if there is a bug in the
compress method.