asgaard.utils.encode
Class CodedInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--asgaard.utils.encode.CodedInputStream
Direct Known Subclasses:
HexDecInputStream, HexEncInputStream

public abstract class CodedInputStream
extends java.io.InputStream


Field Summary
protected  java.lang.String buf
           
protected  java.io.InputStream in
           
 
Constructor Summary
CodedInputStream()
          Creates the Stream.
CodedInputStream(java.io.InputStream input)
          Creates the Stream.
 
Method Summary
abstract  java.lang.String getCoded()
          Get the decoded data.
 void setInputStream(java.io.InputStream input)
          Set the InputStream.
 void writeBuffer(java.lang.String s)
          sets a HEX-ASCII-String to buf
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected java.io.InputStream in

buf

protected java.lang.String buf
Constructor Detail

CodedInputStream

public CodedInputStream()
Creates the Stream.

CodedInputStream

public CodedInputStream(java.io.InputStream input)
Creates the Stream.
Method Detail

getCoded

public abstract java.lang.String getCoded()
                                   throws java.io.IOException
Get the decoded data.

writeBuffer

public void writeBuffer(java.lang.String s)
sets a HEX-ASCII-String to buf

setInputStream

public void setInputStream(java.io.InputStream input)
Set the InputStream.