public class BinHexDatatype extends AbstractDatatype<byte[]>
Datatype.Builtin, Datatype.Default
Constructor and Description |
---|
BinHexDatatype() |
Modifier and Type | Method and Description |
---|---|
String |
getString(byte[] value)
Transforms a value supported by this datatype into a string representation.
|
Class<byte[]> |
getValueType() |
byte[] |
valueOf(String s)
Transforms a string representation into a value of the supported type.
|
getBuiltin, getDisplayString, isHandlingJavaType, isValid, setBuiltin, toString
public Class<byte[]> getValueType()
getValueType
in class AbstractDatatype<byte[]>
public byte[] valueOf(String s) throws InvalidValueException
Datatype
valueOf
in interface Datatype<byte[]>
valueOf
in class AbstractDatatype<byte[]>
s
- The string representation of a value.null
if the string was null
or empty.InvalidValueException
- If the string couldn't be parsed.public String getString(byte[] value) throws InvalidValueException
Datatype
This method calls Datatype.isValid(Object)
before converting the value, it throws
an exception if validation fails.
getString
in interface Datatype<byte[]>
getString
in class AbstractDatatype<byte[]>
value
- The value to transform.null
.InvalidValueException
Copyright © 2016 4th Line GmbH, Switzerland. All rights reserved.