|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.io.OutputStream
net.sourceforge.openstego.StegoOutputStream
OutputStream to embed data into image
Constructor Summary | |
StegoOutputStream(java.awt.image.BufferedImage image,
int dataLength,
java.lang.String fileName,
OpenStegoConfig config)
Default constructor |
Method Summary | |
void |
close()
Closes the stream |
void |
flush()
Flushes the stream |
java.awt.image.BufferedImage |
getImage()
Get the image containing the embedded data. |
void |
write(int data)
Implementation of OutputStream.write(int) method |
Methods inherited from class java.io.OutputStream |
write, write |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StegoOutputStream(java.awt.image.BufferedImage image, int dataLength, java.lang.String fileName, OpenStegoConfig config) throws OpenStegoException
image
- Source image into which data will be embeddeddataLength
- Length of the data that would be written to the imagefileName
- Name of the source data fileconfig
- Configuration data to use while writing
OpenStegoException
Method Detail |
public void write(int data) throws java.io.IOException
OutputStream.write(int)
method
data
- Byte to be written
java.io.IOException
public void flush() throws java.io.IOException
java.io.IOException
public void close() throws java.io.IOException
java.io.IOException
public java.awt.image.BufferedImage getImage() throws OpenStegoException
OpenStegoException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |