net.sourceforge.openstego
Class StegoInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended bynet.sourceforge.openstego.StegoInputStream

public class StegoInputStream
extends java.io.InputStream

InputStream to read embedded data from image file


Constructor Summary
StegoInputStream(java.awt.image.BufferedImage image, OpenStegoConfig config)
          Default constructor
 
Method Summary
 DataHeader getDataHeader()
          Get method for dataHeader
 int read()
          Implementation of InputStream.read() method
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StegoInputStream

public StegoInputStream(java.awt.image.BufferedImage image,
                        OpenStegoConfig config)
                 throws OpenStegoException
Default constructor

Parameters:
image - Image data to be read
config - Configuration data to use while reading
Throws:
OpenStegoException
Method Detail

read

public int read()
         throws java.io.IOException
Implementation of InputStream.read() method

Throws:
java.io.IOException

getDataHeader

public DataHeader getDataHeader()
Get method for dataHeader

Returns:
Data header