edu.jhu.pha.ivoa
Class VOTWrap

java.lang.Object
  |
  +--edu.jhu.pha.ivoa.VOTWrap

public class VOTWrap
extends java.lang.Object

   Current Version
   ===============
   ID:            $Id: VOTWrap.html,v 1.1 2003/08/18 18:05:02 carliles Exp $
   Revision:      $Revision: 1.1 $
   Date/time:     $Date: 2003/08/18 18:05:02 $
   


Nested Class Summary
static interface VOTWrap.Field
           
static interface VOTWrap.Resource
           
static interface VOTWrap.Table
           
static interface VOTWrap.TableData
           
static interface VOTWrap.TD
           
static interface VOTWrap.TR
           
static interface VOTWrap.VOTable
           
 
Field Summary
static int DEFAULT_PARSER
           
static int JAVOT
           
static java.lang.String JAVOT_STRING
           
static int SAVOT
           
static java.lang.String SAVOT_STRING
           
 
Constructor Summary
VOTWrap()
           
 
Method Summary
static VOTWrap.VOTable createVOTable(java.io.InputStream votableStream)
           
static VOTWrap.VOTable createVOTable(java.io.InputStream votableStream, int parser)
           
static java.lang.String revision()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVOT

public static final int JAVOT
See Also:
Constant Field Values

SAVOT

public static final int SAVOT
See Also:
Constant Field Values

DEFAULT_PARSER

public static final int DEFAULT_PARSER
See Also:
Constant Field Values

JAVOT_STRING

public static final java.lang.String JAVOT_STRING
See Also:
Constant Field Values

SAVOT_STRING

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

VOTWrap

public VOTWrap()
Method Detail

createVOTable

public static VOTWrap.VOTable createVOTable(java.io.InputStream votableStream)
                                     throws java.lang.Exception
Parameters:
votableStream - an InputStream containing the VOTable data.
Returns:
a VOTable with the underlying implementation provided by the default parser, currently set to Savot. If the VOTParser system property has been set (for instance with -DVOTParser="JAVOT"), then the specified parser will be used. Currently, recoginized values are "JAVOT" and "SAVOT".
Throws:
java.lang.Exception

createVOTable

public static VOTWrap.VOTable createVOTable(java.io.InputStream votableStream,
                                            int parser)
                                     throws java.lang.Exception
Parameters:
votableStream - an InputStream containing the VOTable data.
parser - the macro value specifying which parser to use.
Returns:
a VOTable with the underlying implementation provided by the parser specified by parser. Currently, recognized values for parser are JAVOT and SAVOT.
Throws:
java.lang.Exception

revision

public static java.lang.String revision()
Returns:
CVS Revision number.