public final class NumberToByteArray extends Object
Modifier and Type | Field and Description |
---|---|
static byte[] |
DOT_ZERO |
static byte[] |
DOUBLE_ZERO |
static byte[] |
DOUBLE_ZERO0 |
static byte[] |
DOUBLE_ZERO2 |
static byte[] |
INFINITY |
static byte[] |
MIN_VALUE |
static byte[] |
MINUS_DOUBLE_ZERO |
static byte[] |
NaN |
static byte[] |
NEGATIVE_INFINITY |
static byte[] |
POSITIVE_INFINITY |
static byte[][] |
ZEROS
Array containing byte arrays containing "zeros" The element at index N
within this array contains a byte array of N zero.
|
Constructor and Description |
---|
NumberToByteArray() |
Modifier and Type | Method and Description |
---|---|
void |
append(FastByteArrayWrapper ba,
double d) |
void |
append(FastByteArrayWrapper ba,
int i) |
static long |
getNthDigit(long l,
int n)
Retrieve the n-th digit of a specified number
|
public static final byte[] INFINITY
public static final byte[] NaN
public static final byte[] NEGATIVE_INFINITY
public static final byte[] MIN_VALUE
public static final byte[] POSITIVE_INFINITY
public static final byte[] DOUBLE_ZERO
public static final byte[] MINUS_DOUBLE_ZERO
public static final byte[] DOUBLE_ZERO2
public static final byte[] DOUBLE_ZERO0
public static final byte[] DOT_ZERO
public static final byte[][] ZEROS
public static long getNthDigit(long l, int n)
l
- The number for which we need to find the n-th digitn
- the index of the required digit (1-based = first digit)public void append(FastByteArrayWrapper ba, double d) throws IOException
IOException
public void append(FastByteArrayWrapper ba, int i) throws IOException
IOException
Copyright © 2006–2015 GeoSolutions. All rights reserved.