public class ByteScanner extends Object
| Constructor and Description |
|---|
ByteScanner() |
| Modifier and Type | Method and Description |
|---|---|
static double |
doubleValue(byte[] buffer,
int startIndex,
int endIndex) |
static void |
encodeByteIntoTwoAsciiCharBytes(int decoded,
byte[] encoded)
Turn a single bytes into two hex character representation.
|
protected static int |
encodeNibbleToHexAsciiCharByte(int nibble)
Turns a single nibble into an ascii HEX digit.
|
static boolean |
isInteger(byte[] digitChars,
int offset,
int len) |
static boolean |
isLong(byte[] digitChars,
int offset,
int len) |
static int |
parseInt(byte[] digitChars,
int offset,
int len) |
static int |
parseIntIgnoreDot(byte[] digitChars,
int offset,
int len) |
static long |
parseLong(byte[] digitChars,
int offset,
int len) |
static long |
parseLongIgnoreDot(byte[] digitChars,
int offset,
int len) |
static double |
simpleDouble(byte[] buffer,
boolean simple,
int digitsPastPoint,
int startIndex,
int endIndex) |
static byte[][] |
split(byte[] inputArray,
int split) |
static byte[][] |
splitByChars(byte[] inputArray,
int... delims) |
static byte[][] |
splitExact(byte[] inputArray,
int resultsArrayLength,
int... delims) |
static byte[][] |
splitExact(byte[] inputArray,
int split,
int resultsArrayLength) |
public static byte[][] splitExact(byte[] inputArray,
int split,
int resultsArrayLength)
public static byte[][] splitExact(byte[] inputArray,
int resultsArrayLength,
int... delims)
public static byte[][] split(byte[] inputArray,
int split)
public static byte[][] splitByChars(byte[] inputArray,
int... delims)
public static boolean isInteger(byte[] digitChars,
int offset,
int len)
public static boolean isLong(byte[] digitChars,
int offset,
int len)
public static int parseInt(byte[] digitChars,
int offset,
int len)
public static int parseIntIgnoreDot(byte[] digitChars,
int offset,
int len)
public static long parseLong(byte[] digitChars,
int offset,
int len)
public static long parseLongIgnoreDot(byte[] digitChars,
int offset,
int len)
public static double doubleValue(byte[] buffer,
int startIndex,
int endIndex)
public static double simpleDouble(byte[] buffer,
boolean simple,
int digitsPastPoint,
int startIndex,
int endIndex)
protected static int encodeNibbleToHexAsciiCharByte(int nibble)
nibble - the nibble to serializeObject.public static void encodeByteIntoTwoAsciiCharBytes(int decoded,
byte[] encoded)
decoded - the byte to serializeObject.encoded - the array to which each encoded nibbles are now ascii hex representations.Copyright © 2014. All rights reserved.