com.csss.opensource.jhexdump
Class JHexDump

java.lang.Object
  extended bycom.csss.opensource.jhexdump.JHexDump
Direct Known Subclasses:
JHexDumpCmdLine

public abstract class JHexDump
extends java.lang.Object

This class is the abstract class that all JHexDump implementations subclass.

There are a couple of attributes which are accessile via get/set methods that will alter the output that are applicable for all implementations of JHexDump that use the JHexDumpReader class.

Version:
1.1
Author:
Lee Walton

Constructor Summary
JHexDump()
          Public constructor.
 
Method Summary
 int getBytesPerRow()
          Returns the number of bytes to display per row of the hexdump.
 boolean isNoAscii()
          Returns the state of the NoAscii.
 boolean isNoPosInd()
          Returns the state of the NoPosInd.
 void setBytesPerRow(int bytesPerRow)
          Sets the number of bytes to display per row of the hexdump.
 void setNoAscii(boolean noAscii)
          Toggles the production of the grid of ascii displayable characters on/off.
 void setNoPosInd(boolean noPosInd)
          Toggles the production of the position indicator on/off.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JHexDump

public JHexDump()
Public constructor.

Sets default values for BytesPerRow (16), NoPosInd (false), and NoAscii (false).

Method Detail

getBytesPerRow

public int getBytesPerRow()
Returns the number of bytes to display per row of the hexdump.

The default is 16.

Returns:
int - BytesPerRow

setBytesPerRow

public void setBytesPerRow(int bytesPerRow)
Sets the number of bytes to display per row of the hexdump.

The default is 16.

Parameters:
bytesPerRow - the new value of bytes per row to set

isNoAscii

public boolean isNoAscii()
Returns the state of the NoAscii.

If NoAscii is set to true, then the hexdump will not produce the grid of ascii displayable characters which appears on the right hand side of the hexdump by default.

Returns:
boolean - NoAscii

setNoAscii

public void setNoAscii(boolean noAscii)
Toggles the production of the grid of ascii displayable characters on/off.

If NoAscii is set to true, then the hexdump will not produce the grid of ascii displayable characters which appears on the right hand side of the hexdump by default.

Parameters:
noAscii - The value of NoAscii to set

isNoPosInd

public boolean isNoPosInd()
Returns the state of the NoPosInd.

If NoPosInd is set to true, then the hexdump will not produce the position indicator which appears on the left hand side of the hexdump by default.

Returns:
boolean NoPosInd

setNoPosInd

public void setNoPosInd(boolean noPosInd)
Toggles the production of the position indicator on/off.

If NoPosInd is set to true, then the hexdump will not produce the position indicator which appears on the left hand side of the hexdump by default.

Parameters:
noPosInd - The value of NoPosInd to set


Copyright © 2003-2004 C/S Software Solutions Ltd. All Rights Reserved.