gov.nist.antd.java.util
Class ObjectPrinter

java.lang.Object
  |
  +--gov.nist.antd.java.util.ObjectPrinter

public class ObjectPrinter
extends java.lang.Object

This class provides the capability to print different java objects. Hashtable, Vector, ...

 This class was developed at the National Institute of Standards and
 Technology by employees of the Federal Government in the course of
 their official duties. Pursuant to title 17 Section 105 of the United
 States Code this software is not subject to copyright protection and
 is in the public domain.
NIST assumes no responsibility whatsoever for its use by other parties, and makes no guarantees, expressed or implied, about its quality, reliability, or any other characteristic.
We would appreciate acknowledgement if the software is used.
NIST ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS" CONDITION AND DISCLAIM ANY LIABILITY OF ANY KIND FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.

Author:
borchert
, rouil

Constructor Summary
ObjectPrinter()
           
 
Method Summary
static void print(java.util.Hashtable hTable, java.lang.String name)
          Prints the data of the given hashtable.
static void print(java.util.Vector vector, java.lang.String name)
          Prints the data of the given Vector.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectPrinter

public ObjectPrinter()
Method Detail

print

public static void print(java.util.Hashtable hTable,
                         java.lang.String name)
Prints the data of the given hashtable. The format is key[...] value[...].

Parameters:
hTable - The instance of Hashtable.
name - the name of the Hashtable.

print

public static void print(java.util.Vector vector,
                         java.lang.String name)
Prints the data of the given Vector. The format is value[...].

Parameters:
name - the name of the Hashtable.