public class PGbytea
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
private static int[] |
HEX_VALS
Lookup table for each of the valid ascii code points (offset by
'0')
to the 4 bit numeric value. |
private static int |
MAX_3_BUFF_SIZE |
| Constructor and Description |
|---|
PGbytea() |
| Modifier and Type | Method and Description |
|---|---|
private static int |
getHex(byte b) |
static byte[] |
toBytes(byte[] s) |
private static byte[] |
toBytesHexEscaped(byte[] s) |
private static byte[] |
toBytesOctalEscaped(byte[] s) |
static java.lang.String |
toPGString(byte[] buf) |
private static final int MAX_3_BUFF_SIZE
private static final int[] HEX_VALS
'0')
to the 4 bit numeric value.public static byte[] toBytes(byte[] s)
throws java.sql.SQLException
java.sql.SQLExceptionprivate static byte[] toBytesHexEscaped(byte[] s)
private static int getHex(byte b)
private static byte[] toBytesOctalEscaped(byte[] s)
public static java.lang.String toPGString(byte[] buf)