Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

infranet
Class EmbeddedDataStream  view EmbeddedDataStream download EmbeddedDataStream.java

java.lang.Object
  extended byjava.io.OutputStream
      extended byjavax.servlet.ServletOutputStream
          extended byinfranet.EmbeddedDataStream

public class EmbeddedDataStream
extends javax.servlet.ServletOutputStream


Field Summary
private  int bytesWritten
           
private  boolean closed
           
private static java.util.Collection cmdList
           
private static int globalCount
           
private  int id
           
private  java.io.OutputStream in
           
private  java.io.File inFile
           
private  java.lang.String key
           
private  java.io.File messageFile
           
private  java.io.OutputStream out
           
private static java.lang.String program
           
private  javax.servlet.http.HttpServletResponse response
           
private static java.io.File stegOut
           
private  boolean success
           
private static java.lang.String workDir
           
 
Fields inherited from class javax.servlet.ServletOutputStream
 
Constructor Summary
EmbeddedDataStream(javax.servlet.http.HttpServletResponse res, java.lang.String key, byte[] message)
           
 
Method Summary
 int bytesWritten()
           
 void close()
          This method closes the stream.
 void flush()
          This method forces any data that may have been buffered to be written to the underlying output device.
private static int getNewId()
           
static void init(java.lang.String shell, java.lang.String program)
           
 boolean success()
           
 void write(int b)
          This method writes a single byte to the output stream.
 
Methods inherited from class javax.servlet.ServletOutputStream
print, print, print, print, print, print, print, println, println, println, println, println, println, println, println
 
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
 

Field Detail

cmdList

private static java.util.Collection cmdList

program

private static java.lang.String program

workDir

private static java.lang.String workDir

stegOut

private static java.io.File stegOut

success

private boolean success

closed

private boolean closed

in

private java.io.OutputStream in

out

private java.io.OutputStream out

response

private javax.servlet.http.HttpServletResponse response

messageFile

private java.io.File messageFile

key

private java.lang.String key

id

private int id

inFile

private java.io.File inFile

bytesWritten

private int bytesWritten

globalCount

private static int globalCount
Constructor Detail

EmbeddedDataStream

public EmbeddedDataStream(javax.servlet.http.HttpServletResponse res,
                          java.lang.String key,
                          byte[] message)
                   throws java.io.IOException
Method Detail

init

public static void init(java.lang.String shell,
                        java.lang.String program)

getNewId

private static int getNewId()

close

public void close()
           throws java.io.IOException
Description copied from class: java.io.OutputStream
This method closes the stream. Any internal or native resources associated with this stream are freed. Any subsequent attempt to access the stream might throw an exception.

This method in this class does nothing.


flush

public void flush()
           throws java.io.IOException
Description copied from class: java.io.OutputStream
This method forces any data that may have been buffered to be written to the underlying output device. Please note that the host environment might perform its own buffering unbeknowst to Java. In that case, a write made (for example, to a disk drive) might be cached in OS buffers instead of actually being written to disk.

This method in this class does nothing.


write

public void write(int b)
           throws java.io.IOException
Description copied from class: java.io.OutputStream
This method writes a single byte to the output stream. The byte written is the low eight bits of the int passed and a argument.

Subclasses must provide an implementation of this abstract method


success

public boolean success()

bytesWritten

public int bytesWritten()