public final class PostgreSQLByteConverter extends Object
| 构造器和说明 |
|---|
PostgreSQLByteConverter() |
| 限定符和类型 | 方法和说明 |
|---|---|
static byte[] |
numeric(BigDecimal number)
Converts a non-null
BigDecimal to binary. |
static Number |
numeric(byte[] bytes)
Convert a variable length array of bytes to an number.
|
static Number |
numeric(byte[] bytes,
int pos)
Convert a variable length array of bytes to an number.
|
public static Number numeric(byte[] bytes)
bytes - array of bytes that can be decoded as an integerpublic static Number numeric(byte[] bytes, int pos)
bytes - array of bytes that can be decoded as an integerpos - index of the start position of the bytes array for numberpublic static byte[] numeric(BigDecimal number)
BigDecimal to binary.number - number to represent in binary.Copyright © 2022 The Apache Software Foundation. All rights reserved.