Package org.postgresql.util
Class PGbytea
- java.lang.Object
-
- org.postgresql.util.PGbytea
-
public class PGbytea extends java.lang.Object
Converts to and from the postgresql bytea datatype used by the backend.
-
-
Field Summary
Fields Modifier and Type Field Description private static int
MAX_3_BUFF_SIZE
-
Constructor Summary
Constructors Constructor Description PGbytea()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static byte
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)
-
-
-
Field Detail
-
MAX_3_BUFF_SIZE
private static final int MAX_3_BUFF_SIZE
- See Also:
- Constant Field Values
-
-
Method Detail
-
toBytes
public static byte[] toBytes(byte[] s) throws java.sql.SQLException
- Throws:
java.sql.SQLException
-
toBytesHexEscaped
private static byte[] toBytesHexEscaped(byte[] s)
-
gethex
private static byte gethex(byte b)
-
toBytesOctalEscaped
private static byte[] toBytesOctalEscaped(byte[] s)
-
toPGString
public static java.lang.String toPGString(byte[] buf)
-
-