org.apache.tapestry.util.io
Class BinaryDumpOutputStream
java.lang.Object
|
+--java.io.OutputStream
|
+--org.apache.tapestry.util.io.BinaryDumpOutputStream
- public class BinaryDumpOutputStream
- extends 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.1 2003/03/05 22:59:31 hlship Exp $
- Author:
- Howard Lewis Ship
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(PrintWriter out)
BinaryDumpOutputStream
public BinaryDumpOutputStream(Writer out)
close
public void close()
throws IOException
- Overrides:
close
in class OutputStream
flush
public void flush()
throws IOException
- Forwards the
flush()
to the PrintWriter
.
- Overrides:
flush
in class OutputStream
getAsciiBegin
public String getAsciiBegin()
getAsciiEnd
public String getAsciiEnd()
getBytesPerLine
public int getBytesPerLine()
getOffsetSeperator
public String getOffsetSeperator()
getShowAscii
public boolean getShowAscii()
getSubstituteChar
public char getSubstituteChar()
setAsciiBegin
public void setAsciiBegin(String value)
setAsciiEnd
public void setAsciiEnd(String value)
setBytesPerLine
public void setBytesPerLine(int value)
setOffsetSeperator
public void setOffsetSeperator(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 IOException
- Overrides:
write
in class OutputStream