|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.io.OutputStream org.apache.tapestry.util.io.BinaryDumpOutputStream
public class BinaryDumpOutputStream
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.
Constructor Summary | |
---|---|
BinaryDumpOutputStream()
Creates a PrintWriter for System.out . |
|
BinaryDumpOutputStream(PrintWriter out)
|
|
BinaryDumpOutputStream(Writer out)
|
Method Summary | |
---|---|
void |
close()
|
void |
flush()
Forwards the flush() to the PrintWriter . |
String |
getAsciiBegin()
|
String |
getAsciiEnd()
|
int |
getBytesPerLine()
|
String |
getOffsetSeperator()
|
boolean |
getShowAscii()
|
char |
getSubstituteChar()
|
void |
setAsciiBegin(String value)
|
void |
setAsciiEnd(String value)
|
void |
setBytesPerLine(int value)
|
void |
setOffsetSeperator(String value)
|
void |
setShowAscii(boolean value)
|
void |
setSubstituteChar(char value)
Sets the character used in the ASCII dump that substitutes for characters outside the range of 32..126. |
void |
write(int b)
|
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 |
Constructor Detail |
---|
public BinaryDumpOutputStream()
PrintWriter
for System.out
.
public BinaryDumpOutputStream(PrintWriter out)
public BinaryDumpOutputStream(Writer out)
Method Detail |
---|
public void close() throws IOException
close
in interface Closeable
close
in class OutputStream
IOException
public void flush() throws IOException
flush()
to the PrintWriter
.
flush
in interface Flushable
flush
in class OutputStream
IOException
public String getAsciiBegin()
public String getAsciiEnd()
public int getBytesPerLine()
public String getOffsetSeperator()
public boolean getShowAscii()
public char getSubstituteChar()
public void setAsciiBegin(String value)
public void setAsciiEnd(String value)
public void setBytesPerLine(int value)
public void setOffsetSeperator(String value)
public void setShowAscii(boolean value)
public void setSubstituteChar(char value)
public void write(int b) throws IOException
write
in class OutputStream
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |