com.primix.tapestry.util.io
Class BinaryDumpOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--com.primix.tapestry.util.io.BinaryDumpOutputStream
- public class BinaryDumpOutputStream
- extends java.io.OutputStream
A kind of super-formatter. It is sent a stream of binary data and
formats it in a human-readable dump format which is forwarded to
its output stream.
Currently, output is in hex though options to change that may
be introduced.
- Version:
- $Id: BinaryDumpOutputStream.java,v 1.4 2001/05/02 14:15:17 hship Exp $
- Author:
- Howard Ship
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 |
BinaryDumpOutputStream
public BinaryDumpOutputStream()
- Creates a
PrintWriter
for System.out
.
BinaryDumpOutputStream
public BinaryDumpOutputStream(java.io.PrintWriter out)
BinaryDumpOutputStream
public BinaryDumpOutputStream(java.io.Writer out)
close
public void close()
throws java.io.IOException
- Overrides:
close
in class java.io.OutputStream
flush
public void flush()
throws java.io.IOException
- Forward's the
flush()
to the PrintWriter
.
- Overrides:
flush
in class java.io.OutputStream
getAsciiBegin
public java.lang.String getAsciiBegin()
getAsciiEnd
public java.lang.String getAsciiEnd()
getBytesPerLine
public int getBytesPerLine()
getOffsetSeperator
public java.lang.String getOffsetSeperator()
getShowAscii
public boolean getShowAscii()
getSubstituteChar
public char getSubstituteChar()
setAsciiBegin
public void setAsciiBegin(java.lang.String value)
setAsciiEnd
public void setAsciiEnd(java.lang.String value)
setBytesPerLine
public void setBytesPerLine(int value)
setOffsetSeperator
public void setOffsetSeperator(java.lang.String value)
setShowAscii
public void setShowAscii(boolean value)
setSubstituteChar
public void setSubstituteChar(char value)
- Sets the character used in the ASCII dump that substitutes for characters
outside the range of 32..126.
write
public void write(int b)
throws java.io.IOException
- Overrides:
write
in class java.io.OutputStream