com.ngs.image.source
Class JAITiffImageSource

java.lang.Object
  extended by com.ngs.image.ImageSource
      extended by com.ngs.image.source.DefaultThumbnailSource
          extended by com.ngs.image.source.JAIImageSource
              extended by com.ngs.image.source.JAITiffImageSource
Direct Known Subclasses:
JAITiffTranslucentSource

public class JAITiffImageSource
extends JAIImageSource

An ImageSource that reads TIFF images from File or SeekableStreams using JAI.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.ngs.image.source.JAIImageSource
JAIImageSource.ImagePage
 
Constructor Summary
protected JAITiffImageSource()
           
  JAITiffImageSource(File f)
           
  JAITiffImageSource(InputStream is, String name)
           
 
Method Summary
 void addRenderingHints(RenderingHints nHints)
           
protected  void open(File f)
           
protected  void open(InputStream is, String name)
           
protected  void readStream(com.sun.media.jai.codec.SeekableStream stream)
          This readStream should parse the current stream and populate the imageCache with new ImagePage objects..
 
Methods inherited from class com.ngs.image.source.JAIImageSource
cachePage, close, dispose, getImage, getImageCount, getImageName, open, setPreScale
 
Methods inherited from class com.ngs.image.source.DefaultThumbnailSource
getThumbnail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JAITiffImageSource

protected JAITiffImageSource()

JAITiffImageSource

public JAITiffImageSource(File f)
                   throws IOException
Throws:
IOException

JAITiffImageSource

public JAITiffImageSource(InputStream is,
                          String name)
                   throws IOException
Throws:
IOException
Method Detail

addRenderingHints

public void addRenderingHints(RenderingHints nHints)

open

protected void open(File f)
             throws IOException
Throws:
IOException

open

protected void open(InputStream is,
                    String name)
             throws IOException
Throws:
IOException

readStream

protected void readStream(com.sun.media.jai.codec.SeekableStream stream)
                   throws IOException
Description copied from class: JAIImageSource
This readStream should parse the current stream and populate the imageCache with new ImagePage objects..

Specified by:
readStream in class JAIImageSource
Throws:
IOException