com.twelvemonkeys.imageio.stream
Class ByteArrayImageInputStream

java.lang.Object
  extended by javax.imageio.stream.ImageInputStreamImpl
      extended by com.twelvemonkeys.imageio.stream.ByteArrayImageInputStream
All Implemented Interfaces:
DataInput, ImageInputStream

public final class ByteArrayImageInputStream
extends ImageInputStreamImpl

Experimental

Version:
$Id: ByteArrayImageInputStream.java,v 1.0 May 15, 2008 2:12:12 PM haraldk Exp$
Author:
Harald Kuhr, last modified by $Author: haraldk$

Field Summary
 
Fields inherited from class javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
 
Constructor Summary
ByteArrayImageInputStream(byte[] pData)
           
ByteArrayImageInputStream(byte[] pData, int offset, int length)
           
 
Method Summary
 boolean isCached()
           
 boolean isCachedMemory()
           
 long length()
           
 int read()
           
 int read(byte[] pBuffer, int pOffset, int pLength)
           
 
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl
checkClosed, close, finalize, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCachedFile, mark, read, readBit, readBits, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, seek, setBitOffset, setByteOrder, skipBytes, skipBytes
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ByteArrayImageInputStream

public ByteArrayImageInputStream(byte[] pData)

ByteArrayImageInputStream

public ByteArrayImageInputStream(byte[] pData,
                                 int offset,
                                 int length)
Method Detail

read

public int read()
         throws IOException
Specified by:
read in interface ImageInputStream
Specified by:
read in class ImageInputStreamImpl
Throws:
IOException

read

public int read(byte[] pBuffer,
                int pOffset,
                int pLength)
         throws IOException
Specified by:
read in interface ImageInputStream
Specified by:
read in class ImageInputStreamImpl
Throws:
IOException

length

public long length()
Specified by:
length in interface ImageInputStream
Overrides:
length in class ImageInputStreamImpl

isCached

public boolean isCached()
Specified by:
isCached in interface ImageInputStream
Overrides:
isCached in class ImageInputStreamImpl

isCachedMemory

public boolean isCachedMemory()
Specified by:
isCachedMemory in interface ImageInputStream
Overrides:
isCachedMemory in class ImageInputStreamImpl


Copyright © 2015. All Rights Reserved.