org.apache.sanselan.common.byteSources
Class ByteSourceArray

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.ByteSourceArray
All Implemented Interfaces:
BinaryConstants

public class ByteSourceArray
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
ByteSourceArray(byte[] bytes)
           
ByteSourceArray(java.lang.String filename, byte[] bytes)
           
 
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

ByteSourceArray

public ByteSourceArray(java.lang.String filename,
                       byte[] bytes)

ByteSourceArray

public ByteSourceArray(byte[] bytes)
Method Detail

getInputStream

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

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.