public class Base64Order extends AbstractOrder<byte[]> implements ByteOrder, java.util.Comparator<byte[]>, java.lang.Cloneable, java.io.Serializable
Modifier and Type | Field and Description |
---|---|
private byte[] |
ab |
private byte[] |
ahpla |
private static byte[] |
ahpla_enhanced |
private static byte[] |
ahpla_standard |
private byte[] |
alpha |
static byte[] |
alpha_enhanced |
static byte[] |
alpha_standard |
(package private) static java.util.regex.Pattern |
cr |
static Base64Order |
enhancedCoder |
private boolean |
rfc1521compliant |
private static long |
serialVersionUID |
static Base64Order |
standardCoder |
asc, zero
Constructor and Description |
---|
Base64Order(boolean up,
boolean rfc1521compliant) |
Modifier and Type | Method and Description |
---|---|
static ByteOrder |
bySignature(java.lang.String signature) |
long |
cardinal(byte[] key)
returns a cardinal number in the range of 0 ..
|
long |
cardinal(byte[] key,
int off,
int len) |
long |
cardinal(java.lang.String key) |
private long |
cardinalI(byte[] key,
int off,
int len) |
private long |
cardinalI(java.lang.String key) |
Order<byte[]> |
clone() |
int |
compare(byte[] a,
byte[] b) |
int |
compare(byte[] a,
byte[] b,
int length) |
int |
compare(byte[] a,
int aoffset,
byte[] b,
int boffset,
int length) |
private int |
compare0(byte[] a,
byte[] b,
int length) |
private int |
compare0(byte[] a,
int aoffset,
byte[] b,
int boffset,
int length) |
private int |
compares(byte[] a,
byte[] b) |
private int |
compares(byte[] a,
byte[] b,
int length) |
private int |
compares(byte[] a,
int aoffset,
byte[] b,
int boffset,
int length) |
byte[] |
decode(java.lang.String in) |
byte |
decodeByte(byte b) |
byte |
decodeByte(char b) |
long |
decodeLong(byte[] s,
int offset,
int length) |
long |
decodeLong(java.lang.String s) |
java.lang.String |
decodeString(java.lang.String in) |
java.lang.String |
encode(byte[] in)
encode arbitrary 2^8 bit-values to b64 strings.
|
char |
encodeByte(byte b) |
void |
encodeLong(long c,
byte[] b,
int offset,
int length) |
byte[] |
encodeLongBA(long c,
int length) |
java.lang.StringBuilder |
encodeLongSB(long c,
int length) |
java.lang.String |
encodeString(java.lang.String in) |
byte[] |
encodeSubstring(byte[] in,
int sublen) |
boolean |
equal(byte[] a,
byte[] b) |
boolean |
equal(byte[] a,
int astart,
byte[] b,
int bstart,
int length) |
static void |
main(java.lang.String[] s) |
static long |
max(int len) |
private static int |
sig(int x) |
java.lang.String |
signature()
returns a signature String so that different orderings have different signatures
|
byte[] |
uncardinal(long c) |
boolean |
wellformed(byte[] a)
returns true if and only if a has only characters that belong to the implemented order
|
boolean |
wellformed(byte[] a,
int astart,
int alength) |
static byte[] |
zero(int length) |
direction, equals, hashCode, largest, partition, rotate, smallest, zero
private static final long serialVersionUID
public static final byte[] alpha_standard
public static final byte[] alpha_enhanced
private static final byte[] ahpla_standard
private static final byte[] ahpla_enhanced
public static final Base64Order standardCoder
public static final Base64Order enhancedCoder
private final boolean rfc1521compliant
private final byte[] alpha
private final byte[] ahpla
private final byte[] ab
static final java.util.regex.Pattern cr
public static byte[] zero(int length)
public Order<byte[]> clone()
clone
in interface Order<byte[]>
clone
in class AbstractOrder<byte[]>
public final boolean wellformed(byte[] a)
Order
wellformed
in interface ByteOrder
wellformed
in interface Order<byte[]>
public final boolean wellformed(byte[] a, int astart, int alength)
wellformed
in interface ByteOrder
public static final ByteOrder bySignature(java.lang.String signature)
public final java.lang.String signature()
Order
public final char encodeByte(byte b)
public final byte decodeByte(byte b)
public final byte decodeByte(char b)
public final java.lang.StringBuilder encodeLongSB(long c, int length)
public final byte[] encodeLongBA(long c, int length)
public final void encodeLong(long c, byte[] b, int offset, int length)
public final long decodeLong(java.lang.String s)
public final long decodeLong(byte[] s, int offset, int length)
public static long max(int len)
public final java.lang.String encodeString(java.lang.String in)
public final java.lang.String encode(byte[] in)
in
- public final byte[] encodeSubstring(byte[] in, int sublen)
public final java.lang.String decodeString(java.lang.String in)
public final byte[] decode(java.lang.String in)
private final long cardinalI(java.lang.String key)
private final long cardinalI(byte[] key, int off, int len)
public final byte[] uncardinal(long c)
public final long cardinal(byte[] key)
Order
public final long cardinal(byte[] key, int off, int len)
public final long cardinal(java.lang.String key)
private static final int sig(int x)
public final boolean equal(byte[] a, byte[] b)
public final boolean equal(byte[] a, int astart, byte[] b, int bstart, int length)
public final int compare(byte[] a, byte[] b)
public final int compare(byte[] a, byte[] b, int length)
public final int compare(byte[] a, int aoffset, byte[] b, int boffset, int length)
private final int compare0(byte[] a, byte[] b, int length)
private final int compare0(byte[] a, int aoffset, byte[] b, int boffset, int length)
private final int compares(byte[] a, byte[] b)
private final int compares(byte[] a, byte[] b, int length)
private final int compares(byte[] a, int aoffset, byte[] b, int boffset, int length)
public static void main(java.lang.String[] s)