FileDocCategorySizeDatePackage
HexDeserializer.javaAPI DocApache Axis 1.41808Sat Apr 22 18:57:28 BST 2006org.apache.axis.encoding.ser

HexDeserializer

public class HexDeserializer extends SimpleDeserializer
Deserializer for hexBinary.
author
Davanum Srinivas Modified by @author Rich scheuerle
see
XML Schema 3.2.16

Fields Summary
Constructors Summary
public HexDeserializer(Class javaType, QName xmlType)

        super(javaType, xmlType);
    
Methods Summary
public java.lang.ObjectmakeValue(java.lang.String source)
Convert the string that has been accumulated into an Object. Subclasses may override this. Note that if the javaType is a primitive, the returned object is a wrapper class.

param
source the serialized value to be deserialized
throws
Exception any exception thrown by this method will be wrapped

        Object result;
        if (javaType == byte[].class) {
            result = HexBinary.decode(source);
        } else {
            result = new HexBinary(source);
        }
        if (result == null) result = new HexBinary("");
        return result;