info.informatica.text
Class HexFormat

java.lang.Object
  extended by info.informatica.text.ObjectFormat
      extended by info.informatica.text.NumberFormat
          extended by info.informatica.text.HexFormat
All Implemented Interfaces:
Alignable

public final class HexFormat
extends NumberFormat

Version:
1.02
Author:
amengual at informatica dot info

Field Summary
 
Fields inherited from interface info.informatica.doc.style.Alignable
CENTER, JUSTIFY, LEFT, RIGHT, UNDETERMINED
 
Constructor Summary
HexFormat()
           
 
Method Summary
 String format(Object o)
          Formats an object according to the format specification set by setFormat.
 Object sample()
          Produce a sample of this format.
 
Methods inherited from class info.informatica.text.ObjectFormat
align, create, create, create, getAlignment
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexFormat

public HexFormat()
Method Detail

format

public String format(Object o)
Description copied from class: ObjectFormat
Formats an object according to the format specification set by setFormat.

Must be overriden by subclasses.

Specified by:
format in class ObjectFormat

sample

public Object sample()
Description copied from class: ObjectFormat
Produce a sample of this format.

Specified by:
sample in class ObjectFormat
Returns:
a String with a (more or less) random object appropriate to be formatted according to current format specifications.