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!
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 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 |
HexEncInputStream
public HexEncInputStream()
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