public class BinaryFileParser extends BinaryFileFunctions
debug
BYTE_ORDER_BIG_ENDIAN, BYTE_ORDER_INTEL, BYTE_ORDER_LEAST_SIGNIFICANT_BYTE, BYTE_ORDER_LITTLE_ENDIAN, BYTE_ORDER_LSB, BYTE_ORDER_MOST_SIGNIFICANT_BYTE, BYTE_ORDER_MOTOROLA, BYTE_ORDER_MSB, BYTE_ORDER_NETWORK
Constructor and Description |
---|
BinaryFileParser() |
BinaryFileParser(int byteOrder) |
Modifier and Type | Method and Description |
---|---|
static boolean |
byteArrayHasPrefix(byte[] bytes,
byte[] prefix) |
protected int |
convertByteArrayToInt(String name,
byte[] bytes) |
protected int |
convertByteArrayToInt(String name,
int start,
byte[] bytes) |
int |
convertByteArrayToShort(String name,
byte[] bytes) |
int |
convertByteArrayToShort(String name,
int start,
byte[] bytes) |
protected int |
getByteOrder() |
protected byte[] |
int2ToByteArray(int value) |
int |
read2Bytes(String name,
InputStream is,
String exception) |
int |
read3Bytes(String name,
InputStream is,
String exception) |
int |
read4Bytes(String name,
InputStream is,
String exception) |
protected void |
setByteOrder(int byteOrder) |
protected void |
setByteOrder(int a,
int b) |
CharsToQuad, compareByteArrays, compareByteArrays, compareBytes, compareBytes, convertByteArrayToDouble, convertByteArrayToDouble, convertByteArrayToDoubleArray, convertByteArrayToFloat, convertByteArrayToFloat, convertByteArrayToFloatArray, convertByteArrayToInt, convertByteArrayToInt, convertByteArrayToIntArray, convertByteArrayToRational, convertByteArrayToRational, convertByteArrayToRationalArray, convertByteArrayToShort, convertByteArrayToShort, convertByteArrayToShortArray, convertDoubleArrayToByteArray, convertDoubleToByteArray, convertFloatArrayToByteArray, convertFloatToByteArray, convertIntArrayToByteArray, convertIntArrayToRationalArray, convertRationalArrayToByteArray, convertRationalToByteArray, convertShortArrayToByteArray, convertShortToByteArray, copyStreamToStream, debugByteArray, debugNumber, debugNumber, debugNumber, debugNumber, debugNumberArray, findNull, findNull, getBytearrayHead, getByteArrayTail, getDebug, getRAFBytes, getStreamBytes, head, int2ToByteArray, printByteBits, printCharQuad, printCharQuad, read2Bytes, read3Bytes, read4Bytes, readAndVerifyBytes, readAndVerifyBytes, readByte, readBytearray, readByteArray, readByteArray, readBytes, readRandomBytes, scanForByte, setDebug, skipBytes, skipBytes, slice, startsWith, tail, writeIntInToByteArray
public BinaryFileParser(int byteOrder)
public BinaryFileParser()
protected void setByteOrder(int a, int b) throws ImageReadException, IOException
ImageReadException
IOException
protected void setByteOrder(int byteOrder)
protected int getByteOrder()
protected final int convertByteArrayToInt(String name, int start, byte[] bytes)
protected final int convertByteArrayToInt(String name, byte[] bytes)
public final int convertByteArrayToShort(String name, byte[] bytes) throws ImageReadException
ImageReadException
public final int convertByteArrayToShort(String name, int start, byte[] bytes) throws ImageReadException
ImageReadException
public final int read4Bytes(String name, InputStream is, String exception) throws ImageReadException, IOException
ImageReadException
IOException
public final int read3Bytes(String name, InputStream is, String exception) throws ImageReadException, IOException
ImageReadException
IOException
public final int read2Bytes(String name, InputStream is, String exception) throws ImageReadException, IOException
ImageReadException
IOException
public static boolean byteArrayHasPrefix(byte[] bytes, byte[] prefix)
protected final byte[] int2ToByteArray(int value)
Copyright © 2007-2012. All Rights Reserved.