org.exolab.castor.xml.schema.reader
Class SchemaReader

java.lang.Object
  extended byorg.exolab.castor.xml.schema.reader.SchemaReader

public class SchemaReader
extends java.lang.Object

A class for reading XML Schemas

Version:
$Revision: 1.3 $ $Date: 2002/01/28 21:56:31 $
Author:
Keith Visco

Constructor Summary
SchemaReader(org.xml.sax.InputSource source)
          Creates a new SchemaReader for the given InputSource
SchemaReader(java.io.Reader reader, java.lang.String filename)
          Creates a new SchemaReader for the given Reader
SchemaReader(java.lang.String url)
          Creates a new SchemaReader for the given URL
 
Method Summary
 Schema read()
          Reads the Schema from the source and returns the Schema object model.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaReader

public SchemaReader(org.xml.sax.InputSource source)
             throws java.io.IOException
Creates a new SchemaReader for the given InputSource

Parameters:
source - the InputSource to read the Schema from.

SchemaReader

public SchemaReader(java.io.Reader reader,
                    java.lang.String filename)
             throws java.io.IOException
Creates a new SchemaReader for the given Reader

Parameters:
reader - the Reader to read the Schema from.
filename - for reporting errors.

SchemaReader

public SchemaReader(java.lang.String url)
             throws java.io.IOException
Creates a new SchemaReader for the given URL

Parameters:
url - the URL string
Method Detail

read

public Schema read()
            throws java.io.IOException
Reads the Schema from the source and returns the Schema object model.
Note: Subsequent calls to this method will simply return a cached copy of the Schema object. To read a new Schema object, create a new Reader.

Returns:
the new Schema created from the source of this SchemaReader
Throws:
java.io.IOException


Intalio Inc. (C) 1999-2001. All rights reserved http://www.intalio.com