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, StegoConfig config)
          Default constructor
 
Method Summary
 int getChannelBitsUsed()
          Get Method for channelBitsUsed
 int getDataLength()
          Get method for dataLength
 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,
                        StegoConfig config)
                 throws java.io.IOException
Default constructor

Parameters:
image - Image data to be read
config - Configuration data to use while reading
Throws:
java.io.IOException
Method Detail

read

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

Throws:
java.io.IOException

getDataLength

public int getDataLength()
Get method for dataLength

Returns:
dataLength

getChannelBitsUsed

public int getChannelBitsUsed()
Get Method for channelBitsUsed

Returns:
channelBitsUsed