Top Description Fields Constructors Methods
org.postgresql.util

public Class PGbytea

extends Object
Class Inheritance
Imports
org.checkerframework.checker.nullness.qual.PolyNull, java.sql.SQLException

Converts to and from the postgresql bytea datatype used by the backend.

Field Summary

Modifier and TypeField and Description
private static final int[]
HEX_VALS

Lookup table for each of the valid ascii code points (offset by '0') to the 4 bit numeric value.

private static final int

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static int
getHex(byte b)

public static @PolyNull byte[]
toBytes(@PolyNull byte[] s)

private static byte[]
private static byte[]
public static @PolyNull String
toPGString(@PolyNull byte[] buf)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

HEX_VALSback to summary
private static final int[] HEX_VALS

Lookup table for each of the valid ascii code points (offset by '0') to the 4 bit numeric value.

MAX_3_BUFF_SIZEback to summary
private static final int MAX_3_BUFF_SIZE

Constructor Detail

PGbyteaback to summary
public PGbytea()

Method Detail

getHexback to summary
private static int getHex(byte b)
toBytesback to summary
public static @PolyNull byte[] toBytes(@PolyNull byte[] s) throws SQLException
toBytesHexEscapedback to summary
private static byte[] toBytesHexEscaped(byte[] s)
toBytesOctalEscapedback to summary
private static byte[] toBytesOctalEscaped(byte[] s)
toPGStringback to summary
public static @PolyNull String toPGString(@PolyNull byte[] buf)