net.ontopia.topicmaps.schema.impl.osl
Class OSLSchemaReader
java.lang.Object
net.ontopia.xml.AbstractXMLFormatReader
net.ontopia.topicmaps.schema.impl.osl.OSLSchemaReader
- All Implemented Interfaces:
- SchemaReaderIF
public class OSLSchemaReader
- extends AbstractXMLFormatReader
- implements SchemaReaderIF
PUBLIC: Reader that reads OSL schemas from their XML representation
into an OSL object structure.
Constructor Summary |
OSLSchemaReader(java.io.File file)
PUBLIC: Creates a reader bound to the given file. |
OSLSchemaReader(java.lang.String uri)
PUBLIC: Creates a reader bound to the given URI. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
OSLSchemaReader
public OSLSchemaReader(java.lang.String uri)
throws java.net.MalformedURLException,
java.io.IOException
- PUBLIC: Creates a reader bound to the given URI.
- Throws:
java.net.MalformedURLException
java.io.IOException
OSLSchemaReader
public OSLSchemaReader(java.io.File file)
- PUBLIC: Creates a reader bound to the given file.
read
public SchemaIF read()
throws java.io.IOException,
SchemaSyntaxException
- Description copied from interface:
SchemaReaderIF
- PUBLIC: Reads the schema from the data source and returns the
object structure.
- Specified by:
read
in interface SchemaReaderIF
- Throws:
java.io.IOException
- Thrown if there are problems with
the data source while reading the schema.
SchemaSyntaxException
- Thrown if the schema violates the
schema language syntax.
configureXMLReaderFactory
protected void configureXMLReaderFactory(ConfiguredXMLReaderFactory cxrfactory)
- Specified by:
configureXMLReaderFactory
in class AbstractXMLFormatReader
Copyright © 2000-2012 Ontopia.