|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.iris.dmc.pdcc.util.SchemaReader
This class reads the PDCC schema file and provides table name and field definitions.
| Constructor Summary | |
SchemaReader(java.lang.String schemaFile)
instantiate SchemaReader by reading indicated filename. |
|
| Method Summary | |
void |
close()
Close currently open schema file. |
java.util.Vector |
getFieldFlags()
Return a vector of the field flags |
java.util.Vector |
getFieldNames()
Return the vector of field names...may be null. |
java.util.Vector |
getFieldTypes()
Return the vector of field types...may be null |
java.lang.String |
getNextTable()
Extract the next table definition from the buffered reader. |
int |
getNumFields()
Return the number of fields in the current table, or 0 |
java.lang.String |
getTableName()
return the current table name or null string. |
static void |
main(java.lang.String[] args)
Test the reader by displaying the contents of provided schema file name. |
void |
open(java.lang.String schemaFile)
Open the schema file for reading. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SchemaReader(java.lang.String schemaFile)
throws java.lang.Exception
| Method Detail |
public void open(java.lang.String schemaFile)
throws java.lang.Exception
java.lang.Exception
public java.lang.String getNextTable()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.String getTableName()
public int getNumFields()
public java.util.Vector getFieldNames()
public java.util.Vector getFieldTypes()
public java.util.Vector getFieldFlags()
public void close()
throws java.io.IOException
java.io.IOExceptionpublic static void main(java.lang.String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||