|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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(java.io.PrintWriter out)
|
|
BinaryDumpOutputStream(java.io.Writer out)
|
Method Summary | |
---|---|
void |
close()
|
void |
flush()
Forwards the flush() to the PrintWriter . |
java.lang.String |
getAsciiBegin()
|
java.lang.String |
getAsciiEnd()
|
int |
getBytesPerLine()
|
java.lang.String |
getOffsetSeperator()
|
boolean |
getShowAscii()
|
int |
getSpacingInterval()
|
char |
getSubstituteChar()
|
boolean |
isShowOffset()
|
void |
setAsciiBegin(java.lang.String value)
|
void |
setAsciiEnd(java.lang.String value)
|
void |
setBytesPerLine(int value)
|
void |
setOffsetSeperator(java.lang.String value)
|
void |
setShowAscii(boolean value)
|
void |
setShowOffset(boolean showOffset)
|
void |
setSpacingInterval(int spacingInterval)
|
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(java.io.PrintWriter out)
public BinaryDumpOutputStream(java.io.Writer out)
Method Detail |
---|
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush()
to the PrintWriter
.
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public java.lang.String getAsciiBegin()
public java.lang.String getAsciiEnd()
public int getBytesPerLine()
public java.lang.String getOffsetSeperator()
public boolean getShowAscii()
public char getSubstituteChar()
public void setAsciiBegin(java.lang.String value)
public void setAsciiEnd(java.lang.String value)
public void setBytesPerLine(int value)
public void setOffsetSeperator(java.lang.String value)
public void setShowAscii(boolean value)
public void setSubstituteChar(char value)
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void setSpacingInterval(int spacingInterval)
public boolean isShowOffset()
public void setShowOffset(boolean showOffset)
public int getSpacingInterval()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |