wt.util.xml.io
Class ByteHexDecoder
java.lang.Object
wt.util.xml.io.ByteHexDecoder
- All Implemented Interfaces:
- CharacterDecoder
- public class ByteHexDecoder
- extends Object
- implements CharacterDecoder
Decodes a string of characters back to a byte array.
Supported API: false
Extendable: false
Method Summary |
byte[] |
decode(String codedString)
decodes a string to a byte array. |
byte |
hex2byte(String hex)
decodes a two-digit hex String into a single byte
Supported API: false |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RESOURCE
private static final String RESOURCE
- See Also:
- Constant Field Values
CLASSNAME
private static final String CLASSNAME
ByteHexDecoder
public ByteHexDecoder()
hex2byte
public byte hex2byte(String hex)
throws XMLMechanismException
- decodes a two-digit hex String into a single byte
Supported API: false
- Parameters:
hex
- the two digit hex number to convert to byte
- Returns:
- byte
- Throws:
XMLMechanismException
decode
public byte[] decode(String codedString)
throws XMLMechanismException
- decodes a string to a byte array.
Supported API: false
- Specified by:
decode
in interface CharacterDecoder
- Parameters:
codedString
- the byte array to encode
- Returns:
- byte[]
- Throws:
XMLMechanismException