public class OrderPreservingBase64
extends java.lang.Object
This is needed so we can compare encoded byte arrays without having to first decode them
| Constructor and Description |
|---|
OrderPreservingBase64() |
| Modifier and Type | Method and Description |
|---|---|
static byte[] |
decode(byte[] data)
Decode byte [ ].
|
static byte[] |
decode(byte[] data,
int offset,
int len)
Decode byte [ ].
|
static byte[] |
encode(byte[] data)
Encode byte [ ].
|
static byte[] |
encode(byte[] data,
int offset,
int len)
Encode byte [ ].
|
static void |
encodeToStream(byte[] data,
java.io.OutputStream out)
Encode to stream.
|
static void |
encodeToStream(java.io.OutputStream out,
byte[] data,
int offset,
int datalen)
Encode to stream.
|
static void |
encodeToWriter(byte[] data,
java.io.Writer out)
Encode to writer.
|
static void |
encodeToWriter(java.io.Writer out,
byte[] data,
int offset,
int datalen)
Encode to writer.
|
public static byte[] encode(byte[] data)
data - the datapublic static byte[] encode(byte[] data,
int offset,
int len)
data - the dataoffset - the offsetlen - the lenpublic static void encodeToStream(byte[] data,
java.io.OutputStream out)
throws java.io.IOException
data - the dataout - the outjava.io.IOException - the io exceptionpublic static void encodeToStream(java.io.OutputStream out,
byte[] data,
int offset,
int datalen)
throws java.io.IOException
out - the outdata - the dataoffset - the offsetdatalen - the datalenjava.io.IOException - the io exceptionpublic static void encodeToWriter(byte[] data,
java.io.Writer out)
throws java.io.IOException
data - the dataout - the outjava.io.IOException - the io exceptionpublic static void encodeToWriter(java.io.Writer out,
byte[] data,
int offset,
int datalen)
throws java.io.IOException
out - the outdata - the dataoffset - the offsetdatalen - the datalenjava.io.IOException - the io exceptionpublic static byte[] decode(byte[] data)
data - the datapublic static byte[] decode(byte[] data,
int offset,
int len)
data - the dataoffset - the offsetlen - the len