Package org.postgresql.util
Class PGbytea
java.lang.Object
org.postgresql.util.PGbytea
Converts to and from the postgresql bytea datatype used by the backend.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static byte
gethex
(byte b) static byte[]
toBytes
(byte[] s) private static byte[]
toBytesHexEscaped
(byte[] s) private static byte[]
toBytesOctalEscaped
(byte[] s) static String
toPGString
(byte[] buf)
-
Field Details
-
MAX_3_BUFF_SIZE
private static final int MAX_3_BUFF_SIZE- See Also:
-
-
Constructor Details
-
PGbytea
public PGbytea()
-
-
Method Details
-
toBytes
- Throws:
SQLException
-
toBytesHexEscaped
private static byte[] toBytesHexEscaped(byte[] s) -
gethex
private static byte gethex(byte b) -
toBytesOctalEscaped
private static byte[] toBytesOctalEscaped(byte[] s) -
toPGString
-