public class ByteScanner extends Object
Constructor and Description |
---|
ByteScanner() |
Modifier and Type | Method and Description |
---|---|
static byte[][] |
compact(byte[][] array) |
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 String |
errorDetails(String message,
byte[] array,
int index,
int ch) |
static int |
findEndQuote(byte[] array,
int index) |
static int |
findEndQuoteUTF8(byte[] array,
int index) |
static boolean |
hasDecimalChar(byte[] chars,
boolean negative) |
static boolean |
hasEscapeChar(byte[] array,
int index,
int[] indexHolder) |
static boolean |
hasEscapeCharUTF8(byte[] array,
int index,
int[] indexHolder) |
static boolean |
isDigits(char[] inputArray) |
static boolean |
isInteger(byte[] digitChars,
int offset,
int len) |
static boolean |
isLong(byte[] digitChars,
int offset,
int len) |
static double |
parseDouble(byte[] buffer) |
static double |
parseDouble(byte[] buffer,
int from,
int to) |
static float |
parseFloat(byte[] buffer,
int from,
int to) |
static int |
parseInt(byte[] digitChars) |
static int |
parseIntFromTo(byte[] digitChars,
int offset,
int to) |
static int |
parseIntFromToIgnoreDot(byte[] digitChars,
int offset,
int to) |
static int |
parseIntIgnoreDot(byte[] digitChars,
int offset,
int len) |
static Number |
parseJsonNumber(byte[] buffer) |
static Number |
parseJsonNumber(byte[] buffer,
int from,
int to) |
static Number |
parseJsonNumber(byte[] buffer,
int from,
int max,
int[] size) |
static long |
parseLong(byte[] digitChars,
int offset,
int len) |
static long |
parseLongFromTo(byte[] digitChars,
int offset,
int to) |
static long |
parseLongFromToIgnoreDot(byte[] digitChars,
int offset,
int to) |
static long |
parseLongIgnoreDot(byte[] digitChars,
int offset,
int len) |
static byte[] |
readNumber(byte[] array,
int idx) |
static byte[] |
readNumber(byte[] array,
int idx,
int len) |
static double |
simpleDouble(byte[] buffer,
boolean simple,
int digitsPastPoint,
int startIndex,
int endIndex) |
static int |
skipWhiteSpace(byte[] array,
int index) |
static int |
skipWhiteSpace(byte[] array,
int index,
int length) |
static int |
skipWhiteSpaceFast(byte[] array) |
static int |
skipWhiteSpaceFast(byte[] array,
int index) |
static byte[][] |
split(byte[] inputArray,
int split) |
static byte[][] |
splitByChars(byte[] inputArray,
char... delims) |
static byte[][] |
splitByCharsFromToDelims(byte[] inputArray,
int from,
int to,
byte... delims) |
static byte[][] |
splitByCharsNoneEmpty(byte[] inputArray,
char... delims) |
static byte[][] |
splitByCharsNoneEmpty(byte[] inputArray,
int from,
int to,
byte... delims) |
static byte[][] |
splitExact(byte[] inputArray,
int resultsArrayLength,
int... delims) |
static byte[][] |
splitExact(byte[] inputArray,
int split,
int resultsArrayLength) |
public static boolean isDigits(char[] inputArray)
public static boolean hasDecimalChar(byte[] chars, boolean negative)
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, char... delims)
public static byte[][] splitByCharsFromToDelims(byte[] inputArray, int from, int to, byte... delims)
public static byte[][] splitByCharsNoneEmpty(byte[] inputArray, char... delims)
public static byte[][] splitByCharsNoneEmpty(byte[] inputArray, int from, int to, byte... delims)
public static byte[][] compact(byte[][] array)
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)
public static int parseIntFromTo(byte[] digitChars, int offset, int to)
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 Number parseJsonNumber(byte[] buffer)
public static Number parseJsonNumber(byte[] buffer, int from, int to)
public static Number parseJsonNumber(byte[] buffer, int from, int max, int[] size)
public static long parseLongFromTo(byte[] digitChars, int offset, int to)
public static int parseIntFromToIgnoreDot(byte[] digitChars, int offset, int to)
public static long parseLongFromToIgnoreDot(byte[] digitChars, int offset, int to)
public static float parseFloat(byte[] buffer, int from, int to)
public static double parseDouble(byte[] buffer)
public static double parseDouble(byte[] buffer, int from, int to)
public static double simpleDouble(byte[] buffer, boolean simple, int digitsPastPoint, int startIndex, int endIndex)
public static int skipWhiteSpace(byte[] array, int index)
public static int skipWhiteSpace(byte[] array, int index, int length)
public static byte[] readNumber(byte[] array, int idx)
public static byte[] readNumber(byte[] array, int idx, int len)
public static int skipWhiteSpaceFast(byte[] array)
public static int skipWhiteSpaceFast(byte[] array, int index)
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.public static boolean hasEscapeChar(byte[] array, int index, int[] indexHolder)
public static int findEndQuote(byte[] array, int index)
public static int findEndQuoteUTF8(byte[] array, int index)
public static boolean hasEscapeCharUTF8(byte[] array, int index, int[] indexHolder)
Copyright © 2014. All rights reserved.