org.apache.sanselan.common.byteSources
Class ByteSource
java.lang.Object
org.apache.sanselan.common.BinaryFileFunctions
org.apache.sanselan.common.byteSources.ByteSource
- All Implemented Interfaces:
- BinaryConstants
- Direct Known Subclasses:
- ByteSourceArray, ByteSourceFile, ByteSourceInputStream
public abstract class ByteSource
- extends BinaryFileFunctions
Field Summary |
protected java.lang.String |
filename
|
Constructor Summary |
ByteSource(java.lang.String filename)
|
Methods inherited from class org.apache.sanselan.common.BinaryFileFunctions |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filename
protected final java.lang.String filename
ByteSource
public ByteSource(java.lang.String filename)
getInputStream
public final java.io.InputStream getInputStream(int start)
throws java.io.IOException
- Throws:
java.io.IOException
getInputStream
public abstract java.io.InputStream getInputStream()
throws java.io.IOException
- Throws:
java.io.IOException
getBlock
public abstract byte[] getBlock(int start,
int length)
throws java.io.IOException
- Throws:
java.io.IOException
getAll
public abstract byte[] getAll()
throws java.io.IOException
- Throws:
java.io.IOException
getLength
public abstract long getLength()
throws java.io.IOException
- Throws:
java.io.IOException
getDescription
public abstract java.lang.String getDescription()
getFilename
public final java.lang.String getFilename()
Copyright © 2007-2009. All Rights Reserved.