com.revusky.oreo
Class DataUtil

java.lang.Object
  |
  +--com.revusky.oreo.DataUtil

public abstract class DataUtil
extends java.lang.Object

a holder for various useful static routines dealing with Oreo data

Author:
Jonathan Revusky

Constructor Summary
DataUtil()
           
 
Method Summary
static void copyFieldsByName(Record source, Record dest)
          convenience routine for transitioning records.
static Record fromString(java.lang.String s)
          convenience routine to convert a string to a Record.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataUtil

public DataUtil()
Method Detail

copyFieldsByName

public static void copyFieldsByName(Record source,
                                    Record dest)
convenience routine for transitioning records. Copies all the fields in source to dest, where dest has a field of the same name.

fromString

public static Record fromString(java.lang.String s)
                         throws java.io.IOException,
                                java.lang.ClassNotFoundException
convenience routine to convert a string to a Record. Is essentially the reverse operation of: DefaultRecord.toString()