asgaard.utils.encode
Class HexDecOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--asgaard.utils.encode.CodedOutputStream
|
+--asgaard.utils.encode.HexDecOutputStream
- public class HexDecOutputStream
- extends CodedOutputStream
Converts ASCII-HEX-String in bytes. To mock the ObjectInputStream
a temporary inputfile must be available, which has to exist but is
never used.
THIS CLASS NEEDS SOME MORE TESTING!
Method Summary |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out. |
void |
setCoded(java.lang.String s)
sets a HEX-ASCII-String to buf, resets the Stream |
void |
write(int b)
Writes the specified byte to this output stream |
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 |
HexDecOutputStream
public HexDecOutputStream()
- Creates the Stream.
HexDecOutputStream
public HexDecOutputStream(java.io.OutputStream output)
- Creates the Stream.
setCoded
public void setCoded(java.lang.String s)
throws java.io.IOException
- sets a HEX-ASCII-String to buf, resets the Stream
- Overrides:
- setCoded in class CodedOutputStream
write
public void write(int b)
throws java.io.IOException
- Writes the specified byte to this output stream
- Parameters:
b
- the byte to be written.- Overrides:
- write in class java.io.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 CodedOutputStream