wt.util.xml.io
Class ByteHexEncoder

java.lang.Object
  extended bywt.util.xml.io.ByteHexEncoder
All Implemented Interfaces:
CharacterEncoder

public class ByteHexEncoder
extends Object
implements CharacterEncoder

encodes a byte array as hex characters. The result is returned in a String of length = 2*byteArray.length

Supported API: false

Extendable: false


Field Summary
private static String CLASSNAME
           
private static char padChar
           
private static String RESOURCE
           
 
Constructor Summary
ByteHexEncoder()
           
 
Method Summary
 String encode(byte[] byteArray)
          encodes a byte array as a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

CLASSNAME

private static final String CLASSNAME

padChar

private static final char padChar
See Also:
Constant Field Values
Constructor Detail

ByteHexEncoder

public ByteHexEncoder()
Method Detail

encode

public String encode(byte[] byteArray)
encodes a byte array as a string.

Supported API: false

Specified by:
encode in interface CharacterEncoder
Parameters:
byteArray - the byte array to encode
Returns:
String