org.apache.sanselan.common.byteSources
Class ByteSourceFile

java.lang.Object
  extended by org.apache.sanselan.common.BinaryFileFunctions
      extended by org.apache.sanselan.common.byteSources.ByteSource
          extended by org.apache.sanselan.common.byteSources.ByteSourceFile
All Implemented Interfaces:
BinaryConstants

public class ByteSourceFile
extends ByteSource


Field Summary
 
Fields inherited from class org.apache.sanselan.common.byteSources.ByteSource
filename
 
Fields inherited from class org.apache.sanselan.common.BinaryFileFunctions
debug
 
Fields inherited from interface org.apache.sanselan.common.BinaryConstants
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 Summary
ByteSourceFile(java.io.File file)
           
 
Method Summary
 byte[] getAll()
           
 byte[] getBlock(int start, int length)
           
 java.lang.String getDescription()
           
 java.io.InputStream getInputStream()
           
 long getLength()
           
 
Methods inherited from class org.apache.sanselan.common.byteSources.ByteSource
getFilename, getInputStream
 
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
 

Constructor Detail

ByteSourceFile

public ByteSourceFile(java.io.File file)
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Specified by:
getInputStream in class ByteSource
Throws:
java.io.IOException

getBlock

public byte[] getBlock(int start,
                       int length)
                throws java.io.IOException
Specified by:
getBlock in class ByteSource
Throws:
java.io.IOException

getLength

public long getLength()
Specified by:
getLength in class ByteSource

getAll

public byte[] getAll()
              throws java.io.IOException
Specified by:
getAll in class ByteSource
Throws:
java.io.IOException

getDescription

public java.lang.String getDescription()
Specified by:
getDescription in class ByteSource


Copyright © 2007-2009. All Rights Reserved.