org.objectweb.cjdbc.common.util
Class ReadWrite

java.lang.Object
  extended byorg.objectweb.cjdbc.common.util.ReadWrite

public class ReadWrite
extends java.lang.Object

This class defines reading and writing convenient methods

Version:
1.0
Author:
Nicolas Modrzyk

Constructor Summary
ReadWrite()
           
 
Method Summary
static java.lang.String write(java.util.ArrayList list, java.lang.String listName, boolean writeCountKey)
          Write the content of the ArrayList in a readable format
static java.lang.String write(java.util.Hashtable table, boolean prefix)
          Write the content of the Hashtable in a readable format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadWrite

public ReadWrite()
Method Detail

write

public static java.lang.String write(java.util.Hashtable table,
                                     boolean prefix)
Write the content of the Hashtable in a readable format

Parameters:
table - the hashtable to get keys and values from
prefix - prefix some values with tabs
Returns:
String conversion for the table content

write

public static java.lang.String write(java.util.ArrayList list,
                                     java.lang.String listName,
                                     boolean writeCountKey)
Write the content of the ArrayList in a readable format

Parameters:
list - the list to get the values from
listName - give the prefix names for values
writeCountKey - should we write the count keys
Returns:
String conversion for the list content


Copyright © 2002, 2005 - ObjectWeb Consortium - All Rights Reserved.