com.japisoft.xmlpad.helper
Class SchemaLocator
java.lang.Object
com.japisoft.xmlpad.helper.SchemaLocator
- public class SchemaLocator
- extends java.lang.Object
This is a class for locating a schema
- Version:
- 1.0
- Author:
- (c) 2004 JAPISoft / http://www.japisoft.com
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
documentLocation
public java.lang.String documentLocation
location
public java.lang.String location
schemaDeclarationLine
public int schemaDeclarationLine
SchemaLocator
public SchemaLocator(java.lang.String location)
- Parameters:
location
- an URL or a file path to a schema
SchemaLocator
public SchemaLocator(java.lang.String documentLocation,
java.lang.String location)
- Parameters:
documentLocation
- Source documentlocation
- Relatif schema location
SchemaLocator
public SchemaLocator(java.net.URL location)
- Parameters:
location
- an URL to a schema
SchemaLocator
public SchemaLocator(java.io.InputStream stream)
- Parameters:
stream
- a stream for a schema content
SchemaLocator
public SchemaLocator(java.io.InputStream stream,
java.lang.String location)
- Parameters:
stream
- A Stream for a schema content
SchemaLocator
public SchemaLocator(java.io.Reader reader)
- Parameters:
reader
- a reader for a schema content
streamProvided
public boolean streamProvided()
- Returns:
- true if a stream was used for the constructor
getSource
public java.lang.String getSource()
- Returns:
- a location or an URL if available
getReader
public java.io.Reader getReader()
throws java.lang.Exception
- Returns:
- The final reader
- Throws:
java.lang.Exception
- If the reader can't be gotten
Copyright © 2006 JAPISoft. All Rights Reserved.