org.boris.variant.codec
Class SourceCodec
java.lang.Object
org.boris.variant.codec.SourceCodec
public class SourceCodec
- extends java.lang.Object
A serialization format that resembles Java or C source code.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SourceCodec
public SourceCodec()
SourceCodec
public SourceCodec(int indent,
int increment,
int wrap)
decode
public static Variant decode(java.io.Reader reader)
throws java.io.IOException
- Throws:
java.io.IOException
decode
public static Variant decode(java.lang.String str)
throws java.io.IOException
- Throws:
java.io.IOException
parseBinary
public static byte[] parseBinary(java.lang.String hex)
encodeFormatted
public static java.lang.String encodeFormatted(Variant dr)
encodeDefault
public static java.lang.String encodeDefault(Variant dr)
encode
public java.lang.String encode(Variant dr)
encodeBinary
public static void encodeBinary(byte[] b,
java.lang.StringBuilder sb)