net.sf.saxon.value
public class Base64BinaryValue extends AtomicValue
| Constructor Summary | |
|---|---|
| Base64BinaryValue(CharSequence s)
Constructor: create a base64Binary value from a supplied string in base64 encoding | |
| Base64BinaryValue(byte[] value)
Constructor: create a base64Binary value from a given array of bytes | |
| Method Summary | |
|---|---|
| protected static int | byteArrayHashCode(byte[] value) |
| AtomicValue | convertPrimitive(BuiltInAtomicType requiredType, boolean validate, XPathContext context)
Convert to target data type |
| Object | convertToJava(Class target, XPathContext context)
Convert to Java object (for passing to external functions) |
| boolean | equals(Object other)
Test if the two base64Binary values are equal. |
| byte[] | getBinaryValue()
Get the binary value |
| ItemType | getItemType(TypeHierarchy th)
Determine the data type of the exprssion |
| int | getLengthInOctets()
Get the number of octets in the value |
| String | getStringValue()
Convert to string |
| int | hashCode() |
Parameters: requiredType an integer identifying the required atomic type context
Returns: an AtomicValue, a value of the required type; or an ErrorValue
Parameters: th
Returns: Type.BASE64_BINARY_TYPE
Returns: the canonical representation.