it.tidalwave.imageio.io
Class FileImageInputStream2

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

public class FileImageInputStream2
extends javax.imageio.stream.FileImageInputStream

The purpose of this class is to provide a specialized FileImageInputStream which is able to tell which is the input file that we are using. This is needed by SPIs that handle formats in which there are multiple files (e.g. Canon CRW which is composed of a .CRW file and a .THM file).

Version:
CVS $Id: FileImageInputStream2.java,v 1.2 2006/02/08 19:54:43 fabriziogiudici Exp $
Author:
fritz

Field Summary
 
Fields inherited from class javax.imageio.stream.ImageInputStreamImpl
bitOffset, byteOrder, flushedPos, streamPos
 
Constructor Summary
FileImageInputStream2(java.io.File file)
           
 
Method Summary
 java.io.File getFile()
          Returns the associated file
 
Methods inherited from class javax.imageio.stream.FileImageInputStream
close, finalize, length, read, read, seek
 
Methods inherited from class javax.imageio.stream.ImageInputStreamImpl
checkClosed, flush, flushBefore, getBitOffset, getByteOrder, getFlushedPosition, getStreamPosition, isCached, isCachedFile, isCachedMemory, 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, setBitOffset, setByteOrder, skipBytes, skipBytes
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileImageInputStream2

public FileImageInputStream2(java.io.File file)
                      throws java.io.FileNotFoundException,
                             java.io.IOException
Parameters:
file -
Throws:
java.io.FileNotFoundException
java.io.IOException
Method Detail

getFile

public java.io.File getFile()
Returns the associated file

Returns:
the associated file