BinaryValueType.
See http://www.w3.org/TR/xmlschema-2/#base64Binary for the spec
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final char[] | |
| private static final byte | |
| private static final long | |
| public static final Base64BinaryType |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public Object | _createValue(String lexicalValue, ValidationContext context)
Implements abstract com. |
| private static int | |
| protected boolean | checkFormat(String lexicalValue, ValidationContext context)
Implements abstract com. |
| public String | convertToLexicalValue(Object value, SerializationContext
Context information that will be possibly used for the conversion.
Currently, this object is used only by QName, but may be extended
in the future. context)Implements com. |
| protected static char | |
| private static byte[] | |
| private static char[] | |
| public static byte[] | |
| public static String | |
| public String | serializeJavaObject(Object value, SerializationContext
The context object is used to obtain information necessary to
serialize the value object. For example, QName type uses the context
to encode the URI into a prefix. context)Implements abstract com. Implements com. |
| decodeMap | back to summary |
|---|---|
| private static final byte[] decodeMap | |
| encodeMap | back to summary |
|---|---|
| private static final char[] encodeMap | |
| PADDING | back to summary |
|---|---|
| private static final byte PADDING | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides com. | |
| theInstance | back to summary |
|---|---|
| public static final Base64BinaryType theInstance | |
| Base64BinaryType | back to summary |
|---|---|
| private Base64BinaryType() | |
| _createValue | back to summary |
|---|---|
| public Object _createValue(String lexicalValue, ValidationContext context) Implements abstract com. Doc from com. converts a whitespace-processed lexical value into the corresponding value object | |
| calcLength | back to summary |
|---|---|
| private static int calcLength(final char[] buf) computes the length of binary data. This function also performs format check.
| |
| checkFormat | back to summary |
|---|---|
| protected boolean checkFormat(String lexicalValue, ValidationContext context) Implements abstract com. | |
| convertToLexicalValue | back to summary |
|---|---|
| public String convertToLexicalValue(Object value, SerializationContext context) Implements com. Doc from com. converts value object back to the corresponding value in the lexical space. This method does the reverse operation of the createValue method. The returned string is not necessarily the canonical representation. Also note that the implementation may accept invalid values without throwing IllegalArgumentException. To make sure that the result is actually a valid representation, call the isValid method.
Be careful not to confuse this method with
The serializeJavaObject method, which is defined in
the
| |
| encode | back to summary |
|---|---|
| protected static char encode(int i) | |
| initDecodeMap | back to summary |
|---|---|
| private static byte[] initDecodeMap() | |
| initEncodeMap | back to summary |
|---|---|
| private static char[] initEncodeMap() | |
| load | back to summary |
|---|---|
| public static byte[] load(String lexicalValue) | |
| save | back to summary |
|---|---|
| public static String save(byte[] input) | |
| serializeJavaObject | back to summary |
|---|---|
| public String serializeJavaObject(Object value, SerializationContext context) Implements abstract com. Implements com. Doc from com. converts a value object back to the lexical representation. This method is a kind of the "reverse" function of the createJavaObject method.
| |