Package org.odftoolkit.odfdom.type
Class Base64Binary
java.lang.Object
org.odftoolkit.odfdom.type.Base64Binary
- All Implemented Interfaces:
OdfDataType
This class represents the in OpenDocument format used data type base64Binary
-
Constructor Summary
ConstructorDescriptionBase64Binary
(byte[] bytes) Construct an newly Base64Binary object that represents the specified byte[] value -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes()
get byte[] from Base64Binarystatic boolean
check if the specified String is a valid base64Binary data typetoString()
Returns a String Object representing this Base64Binary's valuestatic Base64Binary
Returns a Base64Binary instance representing the specified String value
-
Constructor Details
-
Base64Binary
Construct an newly Base64Binary object that represents the specified byte[] value- Parameters:
bytes
- the value to be represented by the Base64Binary Object- Throws:
NumberFormatException
- If the parameter is not a valid Base64Binary.
-
-
Method Details
-
toString
Returns a String Object representing this Base64Binary's value -
valueOf
Returns a Base64Binary instance representing the specified String value- Parameters:
stringValue
- a String value- Returns:
- return a Base64Binary instance representing stringValue
- Throws:
NumberFormatException
- If the parameter is not a valid Base64Binary.
-
getBytes
public byte[] getBytes()get byte[] from Base64Binary- Returns:
- byte[] returned from this Base64Binary instance
-
isValid
check if the specified String is a valid base64Binary data type- Parameters:
stringValue
- the value to be tested- Returns:
- true if the value of argument is valid for base64Binary data type false otherwise
-