asgaard.utils.encode
Class HexEncInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--asgaard.utils.encode.CodedInputStream
              |
              +--asgaard.utils.encode.HexEncInputStream

public class HexEncInputStream
extends CodedInputStream

Converts bytes to a ASCII-HEX-String THIS CLASS NEEDS SOME MORE TESTING!


Fields inherited from class asgaard.utils.encode.CodedInputStream
buf, in
 
Constructor Summary
HexEncInputStream()
           
 
Method Summary
 int available()
          Returns the number of bytes that can be read from this input stream without blocking.
 java.lang.String getCoded()
          Reads bytes from the Stream and converts it to a String containing ASCII-HEX numbers.
 int read()
          Writes the specified byte to this output stream
 
Methods inherited from class asgaard.utils.encode.CodedInputStream
setInputStream, writeBuffer
 
Methods inherited from class java.io.InputStream
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

HexEncInputStream

public HexEncInputStream()
Method Detail

getCoded

public java.lang.String getCoded()
                          throws java.io.IOException
Reads bytes from the Stream and converts it to a String containing ASCII-HEX numbers.
Returns:
the HEX-String
Overrides:
getCoded in class CodedInputStream

read

public int read()
         throws java.io.IOException
Writes the specified byte to this output stream
Parameters:
b - the byte to be written.
Overrides:
read in class java.io.InputStream

available

public int available()
              throws java.io.IOException
Returns the number of bytes that can be read from this input stream without blocking.
Overrides:
available in class java.io.InputStream