public abstract class ByteSource extends BinaryFileFunctions
Modifier and Type | Field and Description |
---|---|
protected String |
filename |
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 |
---|
ByteSource(String filename) |
Modifier and Type | Method and Description |
---|---|
abstract byte[] |
getAll() |
abstract byte[] |
getBlock(int start,
int length) |
abstract String |
getDescription() |
String |
getFilename() |
abstract InputStream |
getInputStream() |
InputStream |
getInputStream(int start) |
abstract long |
getLength() |
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
protected final String filename
public ByteSource(String filename)
public final InputStream getInputStream(int start) throws IOException
IOException
public abstract InputStream getInputStream() throws IOException
IOException
public abstract byte[] getBlock(int start, int length) throws IOException
IOException
public abstract byte[] getAll() throws IOException
IOException
public abstract long getLength() throws IOException
IOException
public abstract String getDescription()
public final String getFilename()
Copyright © 2007-2012. All Rights Reserved.