intarsys runtime library

de.intarsys.tools.stream
Class HexDumpStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by de.intarsys.tools.stream.HexDumpStream
All Implemented Interfaces:
Closeable, Flushable

public class HexDumpStream
extends FilterOutputStream

A stream object dumping its data in hex format.


Constructor Summary
HexDumpStream(OutputStream out)
          Creates a new HexOutputStream.
 
Method Summary
 void flush()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.FilterOutputStream
close
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexDumpStream

public HexDumpStream(OutputStream out)
Creates a new HexOutputStream.

Parameters:
out - The input stream.
Method Detail

flush

public void flush()
           throws IOException
Specified by:
flush in interface Flushable
Overrides:
flush in class FilterOutputStream
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

write

public void write(int b)
           throws IOException
Overrides:
write in class FilterOutputStream
Throws:
IOException

intarsys runtime library

Copyright © 2008 intarsys consulting GmbH. All Rights Reserved.