org.jostraca.resource
Class SimpleDataObjectReader

java.lang.Object
  extended byorg.jostraca.resource.SimpleDataObjectReader

public class SimpleDataObjectReader
extends java.lang.Object

Reads simple data objects, in the format: object-desc-1 ; object-desc-2 ; object-desc-3 ; where object-desc-n is the object description used by SimpleDataObject.


Field Summary
static java.lang.String OBJECT_SEPARATOR
           
 
Constructor Summary
SimpleDataObjectReader()
           
 
Method Summary
static SimpleDataObject[] read(java.io.File pFile)
           
static SimpleDataObject[] read(java.io.File pFile, int pNumItemsPerField)
          Read a simple schema definition for a data container object:
static SimpleDataObject[] read(java.lang.String pFilePath)
          See read(File)
static SimpleDataObject[] read(java.lang.String pFilePath, int pNumItemsPerField)
          See read(File)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OBJECT_SEPARATOR

public static final java.lang.String OBJECT_SEPARATOR
See Also:
Constant Field Values
Constructor Detail

SimpleDataObjectReader

public SimpleDataObjectReader()
Method Detail

read

public static SimpleDataObject[] read(java.lang.String pFilePath)
                               throws ResourceException
See read(File)

Parameters:
pFilePath - Path to file containing schema.
Throws:
ResourceException

read

public static SimpleDataObject[] read(java.lang.String pFilePath,
                                      int pNumItemsPerField)
                               throws ResourceException
See read(File)

Parameters:
pFilePath - Path to file containing schema.
pNumItemsPerField - number of items of metadata per field
Throws:
ResourceException

read

public static SimpleDataObject[] read(java.io.File pFile)
                               throws ResourceException
Throws:
ResourceException

read

public static SimpleDataObject[] read(java.io.File pFile,
                                      int pNumItemsPerField)
                               throws ResourceException
Read a simple schema definition for a data container object:

Parameters:
pFile - File containing schema.
pNumItemsPerField - number of items of metadata per field
Throws:
ResourceException
See Also:
SimpleDataObject


Copyright © 2000-2002 Richard Rodger