final class QuotedPrintableDecoder
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int |
UPPER_NIBBLE_SHIFT
The shift value required to create the upper nibble
from the first of 2 byte values converted from ascii hex.
|
Modifier | Constructor and Description |
---|---|
private |
QuotedPrintableDecoder()
Hidden constructor, this class must not be instantiated.
|
Modifier and Type | Method and Description |
---|---|
static int |
decode(byte[] data,
java.io.OutputStream out)
Decode the encoded byte data writing it to the given output stream.
|
private static int |
hexToBinary(byte b)
Convert a hex digit to the binary value it represents.
|
private static final int UPPER_NIBBLE_SHIFT
private QuotedPrintableDecoder()
public static int decode(byte[] data, java.io.OutputStream out) throws java.io.IOException
data
- The array of byte data to decode.out
- The output stream used to return the decoded data.java.io.IOException
private static int hexToBinary(byte b) throws java.io.IOException
b
- the ascii hex byte to convert (0-0, A-F, a-f)java.io.IOException
- if the byte is not a valid hex digit.