|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.fernsroth.easyio.EasyIOFormatter
public class EasyIOFormatter
Constructor Summary | |
---|---|
EasyIOFormatter()
|
Method Summary | |
---|---|
int |
getBytesPerLine()
|
int |
getCharactersInOffset()
|
void |
print()
prints. |
static java.lang.String |
print(byte[] data)
prints data. |
static java.lang.String |
print(byte[] data,
int offset,
int length)
prints data. |
static java.lang.String |
print(java.io.InputStream in)
print a pretty string of the hex. |
void |
setBytesPerLine(int bytesPerLine)
|
void |
setCharactersInOffset(int charactersInOffset)
|
void |
setInputStream(java.io.InputStream inputStream)
|
void |
setOutputStream(java.io.OutputStream outputStream)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EasyIOFormatter()
Method Detail |
---|
public static java.lang.String print(java.io.InputStream in) throws java.io.IOException
in
- the input stream.
java.io.IOException
public static java.lang.String print(byte[] data)
data
- the data to print.
public static java.lang.String print(byte[] data, int offset, int length)
data
- the data to print.offset
- the offset into the byte array.length
- the length of the byte array.
public void print() throws java.io.IOException
java.io.IOException
public void setInputStream(java.io.InputStream inputStream)
inputStream
- the inputStream to setpublic void setOutputStream(java.io.OutputStream outputStream)
outputStream
- the outputStream to setpublic int getBytesPerLine()
public void setBytesPerLine(int bytesPerLine)
bytesPerLine
- the bytesPerLine to setpublic int getCharactersInOffset()
public void setCharactersInOffset(int charactersInOffset)
charactersInOffset
- the charactersInOffset to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |