it.tidalwave.imageio.srf
Class SRFImageInputStream

java.lang.Object
  extended by javax.imageio.stream.ImageInputStreamImpl
      extended by it.tidalwave.imageio.io.RAWImageInputStream
          extended by it.tidalwave.imageio.srf.SRFImageInputStream
All Implemented Interfaces:
java.io.DataInput, javax.imageio.stream.ImageInputStream

public class SRFImageInputStream
extends RAWImageInputStream

Version:
CVS $Id: SRFImageInputStream.java,v 1.2 2006/02/08 20:21:17 fabriziogiudici Exp $
Author:
Fabrizio Giudici

Field Summary
 
Fields inherited from class javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
 
Constructor Summary
SRFImageInputStream(javax.imageio.stream.ImageInputStream delegate)
           
 
Method Summary
 long getStreamPosition()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 void seek(long pos)
           
 void setDecryptionKey(int key)
           
 int skipBytes(int n)
           
 long skipBytes(long n)
           
 void startEncryptedSection(int size)
           
 void startEncryptedSection(long pos, java.nio.ByteBuffer byteBuffer)
           
 void stopEncryptedSection()
           
 
Methods inherited from class it.tidalwave.imageio.io.RAWImageInputStream
close, flush, flushBefore, getBaseOffset, getBitOffset, getFlushedPosition, isCached, isCachedFile, isCachedMemory, length, readBit, readBits, readComplementedBits, selectBitReader, setBaseOffset, setBitOffset, setDontClose, setSkipZeroAfterFF, skipBits
 
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl
checkClosed, finalize, getByteOrder, mark, read, readBoolean, readByte, readBytes, readChar, readDouble, readFloat, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readFully, readInt, readLine, readLong, readShort, readUnsignedByte, readUnsignedInt, readUnsignedShort, readUTF, reset, setByteOrder
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SRFImageInputStream

public SRFImageInputStream(javax.imageio.stream.ImageInputStream delegate)
Parameters:
delegate -
Method Detail

setDecryptionKey

public void setDecryptionKey(int key)
Parameters:
key -

startEncryptedSection

public void startEncryptedSection(int size)
                           throws java.io.IOException
Parameters:
size -
Throws:
java.io.IOException

startEncryptedSection

public void startEncryptedSection(long pos,
                                  java.nio.ByteBuffer byteBuffer)

stopEncryptedSection

public void stopEncryptedSection()
                          throws java.io.IOException
Throws:
java.io.IOException

read

public int read()
         throws java.io.IOException
Specified by:
read in interface javax.imageio.stream.ImageInputStream
Overrides:
read in class RAWImageInputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Specified by:
read in interface javax.imageio.stream.ImageInputStream
Overrides:
read in class RAWImageInputStream
Throws:
java.io.IOException

skipBytes

public int skipBytes(int n)
              throws java.io.IOException
Specified by:
skipBytes in interface java.io.DataInput
Specified by:
skipBytes in interface javax.imageio.stream.ImageInputStream
Overrides:
skipBytes in class RAWImageInputStream
Throws:
java.io.IOException

skipBytes

public long skipBytes(long n)
               throws java.io.IOException
Specified by:
skipBytes in interface javax.imageio.stream.ImageInputStream
Overrides:
skipBytes in class RAWImageInputStream
Throws:
java.io.IOException

getStreamPosition

public long getStreamPosition()
                       throws java.io.IOException
Specified by:
getStreamPosition in interface javax.imageio.stream.ImageInputStream
Overrides:
getStreamPosition in class RAWImageInputStream
Throws:
java.io.IOException

seek

public void seek(long pos)
          throws java.io.IOException
Specified by:
seek in interface javax.imageio.stream.ImageInputStream
Overrides:
seek in class RAWImageInputStream
Throws:
java.io.IOException