|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object facets.util.ByteStrings
public final class ByteStrings
Encoding of byte[]
s as ASCII text.
Currently implemented with simple hex-encoding; compactness can be improved by
chaining with PackedSerialized
.
Constructor Summary | |
---|---|
ByteStrings()
|
Method Summary | |
---|---|
static byte[] |
decodeString(java.lang.String in)
Decodes a string created with encodeBytes(byte[]) . |
static java.lang.String |
encodeBytes(byte[] in)
Encodes bytes as ASCII text decodable by decodeString(String) . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ByteStrings()
Method Detail |
---|
public static java.lang.String encodeBytes(byte[] in)
decodeString(String)
.
in
- the bytes to encode
null
if an error occurred when checking
the encoding.public static byte[] decodeString(java.lang.String in)
encodeBytes(byte[])
.
in
- the encoded string, which may contain formatting whitespace
null
if decoding fails for any reason
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |