asgaard.utils.encode
Class CodedOutputStream

java.lang.Object
  |
  +--java.io.OutputStream
        |
        +--asgaard.utils.encode.CodedOutputStream
Direct Known Subclasses:
HexDecOutputStream, HexEncOutputStream

public abstract class CodedOutputStream
extends java.io.OutputStream


Field Summary
protected  java.lang.String buf
           
protected  boolean holdbuf
           
protected  java.io.OutputStream out
           
 
Constructor Summary
CodedOutputStream()
          Creates the Stream.
CodedOutputStream(java.io.OutputStream output)
          Creates the Stream.
 
Method Summary
 void close()
          Closes this output stream and releases any system resources associated with this stream.
 void flush()
          Flushes this output stream and forces any buffered output bytes to be written out.
 java.lang.String readBuffer()
          Let us see what was passing bye ...
 void setCoded(java.lang.String s)
          Set the coded data and sends it to the connected OutputStream.
 void setOutputStream(java.io.OutputStream output)
          Set the OutputStream.
 
Methods inherited from class java.io.OutputStream
write, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

out

protected java.io.OutputStream out

buf

protected java.lang.String buf

holdbuf

protected boolean holdbuf
Constructor Detail

CodedOutputStream

public CodedOutputStream()
Creates the Stream.

CodedOutputStream

public CodedOutputStream(java.io.OutputStream output)
Creates the Stream.
Method Detail

setCoded

public void setCoded(java.lang.String s)
              throws java.io.IOException
Set the coded data and sends it to the connected OutputStream.

readBuffer

public java.lang.String readBuffer()
                            throws java.io.IOException
Let us see what was passing bye ...

setOutputStream

public void setOutputStream(java.io.OutputStream output)
Set the OutputStream.

flush

public void flush()
           throws java.io.IOException
Flushes this output stream and forces any buffered output bytes to be written out.
Overrides:
flush in class java.io.OutputStream

close

public void close()
           throws java.io.IOException
Closes this output stream and releases any system resources associated with this stream.
Overrides:
close in class java.io.OutputStream