com.fernsroth.easyio
Class EasyIOFormatter

java.lang.Object
  extended by com.fernsroth.easyio.EasyIOFormatter

public class EasyIOFormatter
extends java.lang.Object

Author:
Joseph M. Ferner (Near Infinity Corporation)

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

EasyIOFormatter

public EasyIOFormatter()
Method Detail

print

public static java.lang.String print(java.io.InputStream in)
                              throws java.io.IOException
print a pretty string of the hex.

Parameters:
in - the input stream.
Returns:
the pretty string.
Throws:
java.io.IOException

print

public static java.lang.String print(byte[] data)
prints data.

Parameters:
data - the data to print.
Returns:
the string.

print

public static java.lang.String print(byte[] data,
                                     int offset,
                                     int length)
prints data.

Parameters:
data - the data to print.
offset - the offset into the byte array.
length - the length of the byte array.
Returns:
the string.

print

public void print()
           throws java.io.IOException
prints.

Throws:
java.io.IOException

setInputStream

public void setInputStream(java.io.InputStream inputStream)
Parameters:
inputStream - the inputStream to set

setOutputStream

public void setOutputStream(java.io.OutputStream outputStream)
Parameters:
outputStream - the outputStream to set

getBytesPerLine

public int getBytesPerLine()
Returns:
the bytesPerLine

setBytesPerLine

public void setBytesPerLine(int bytesPerLine)
Parameters:
bytesPerLine - the bytesPerLine to set

getCharactersInOffset

public int getCharactersInOffset()
Returns:
the charactersInOffset

setCharactersInOffset

public void setCharactersInOffset(int charactersInOffset)
Parameters:
charactersInOffset - the charactersInOffset to set


Copyright © 2006 null. All Rights Reserved.