Package org.apache.groovy.json.internal
Class ByteScanner
java.lang.Object
org.apache.groovy.json.internal.ByteScanner
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic voidencodeByteIntoTwoAsciiCharBytes(int decoded, byte[] encoded) Turn a single bytes into two hex character representation.protected static intencodeNibbleToHexAsciiCharByte(int nibble) Turns a single nibble into an ascii HEX digit.
- 
Constructor Details- 
ByteScannerpublic ByteScanner()
 
- 
- 
Method Details- 
encodeNibbleToHexAsciiCharByteprotected static int encodeNibbleToHexAsciiCharByte(int nibble) Turns a single nibble into an ascii HEX digit.- Parameters:
- nibble- the nibble to serializeObject.
- Returns:
- the encoded nibble (1/2 byte).
 
- 
encodeByteIntoTwoAsciiCharBytespublic static void encodeByteIntoTwoAsciiCharBytes(int decoded, byte[] encoded) Turn a single bytes into two hex character representation.- Parameters:
- decoded- the byte to serializeObject.
- encoded- the array to which each encoded nibbles are now ascii hex representations.
 
 
-