Class ByteArrayImageInputStream

  • All Implemented Interfaces:
    java.io.Closeable, java.io.DataInput, java.lang.AutoCloseable, javax.imageio.stream.ImageInputStream

    public final class ByteArrayImageInputStream
    extends javax.imageio.stream.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
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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 java.io.IOException
        Specified by:
        read in interface javax.imageio.stream.ImageInputStream
        Specified by:
        read in class javax.imageio.stream.ImageInputStreamImpl
        Throws:
        java.io.IOException
      • read

        public int read​(byte[] pBuffer,
                        int pOffset,
                        int pLength)
                 throws java.io.IOException
        Specified by:
        read in interface javax.imageio.stream.ImageInputStream
        Specified by:
        read in class javax.imageio.stream.ImageInputStreamImpl
        Throws:
        java.io.IOException
      • length

        public long length()
        Specified by:
        length in interface javax.imageio.stream.ImageInputStream
        Overrides:
        length in class javax.imageio.stream.ImageInputStreamImpl
      • isCached

        public boolean isCached()
        Specified by:
        isCached in interface javax.imageio.stream.ImageInputStream
        Overrides:
        isCached in class javax.imageio.stream.ImageInputStreamImpl
      • isCachedMemory

        public boolean isCachedMemory()
        Specified by:
        isCachedMemory in interface javax.imageio.stream.ImageInputStream
        Overrides:
        isCachedMemory in class javax.imageio.stream.ImageInputStreamImpl