org.osesb.utilities.xml.compiledschemas
Class DefaultLSInput

java.lang.Object
  extended by org.osesb.utilities.xml.compiledschemas.DefaultLSInput
All Implemented Interfaces:
org.w3c.dom.ls.LSInput

public class DefaultLSInput
extends java.lang.Object
implements org.w3c.dom.ls.LSInput

This Class implements the LSInput interface for jaxp v1.3 schema compilation. LSInput objects are source streams for external entities that are returned by LSResourceResolver(s) during schema compilation. The jaxp v1.3 LSParser looks at inputs specified in LSInput in the following order: characterStream, byteStream, stringData, systemId, publicId.

Usage: @see DefaultLSResourceResolver and descendants.

Since:
Version .9

Constructor Summary
DefaultLSInput()
           
 
Method Summary
 java.lang.String getBaseURI()
          The base URI to be used (see section 5.1.4 in [IETF RFC 2396]) for resolving a relative systemId for the resolved entity to an absolute URI.
 java.io.InputStream getByteStream()
          Get the byte stream for this input source.
 boolean getCertifiedText()
          If set to true, assume that the input is certified (see section 2.13 in [XML 1.1]) when parsing [XML 1.1].
 java.io.Reader getCharacterStream()
          Get the character stream Reader for this input source.
 java.lang.String getEncoding()
          Get theencoding of the XML stream for this input source.
 java.lang.String getPublicId()
          Get the publicId for this input source.
 java.lang.String getStringData()
          Get the String data to parse.
 java.lang.String getSystemId()
          Get the system identifier, a URI reference [IETF RFC 2396], for this input source.
 void setBaseURI(java.lang.String baseURI)
          The base URI to be used (see section 5.1.4 in [IETF RFC 2396]) for resolving a relative systemId for the resolved entity to an absolute URI.
 void setByteStream(java.io.InputStream istream)
          Set the byte stream for this input source.
 void setCertifiedText(boolean certifiedText)
          If set to true, assume that the input is certified (see section 2.13 in [XML 1.1]) when parsing [XML 1.1].
 void setCharacterStream(java.io.Reader characterStreamReader)
          Set the character stream Reader for this input source.
 void setEncoding(java.lang.String encoding)
          Set the encoding of the XML stream for this input source.
 void setPublicId(java.lang.String publicId)
          Set the publicId for this input source.
 void setStringData(java.lang.String stringData)
          Set the String data to parse.
 void setSystemId(java.lang.String systemId)
          Set the system identifier, a URI reference [IETF RFC 2396], for this input source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultLSInput

public DefaultLSInput()
Method Detail

getCharacterStream

public java.io.Reader getCharacterStream()
Get the character stream Reader for this input source.

Specified by:
getCharacterStream in interface org.w3c.dom.ls.LSInput

setCharacterStream

public void setCharacterStream(java.io.Reader characterStreamReader)
Set the character stream Reader for this input source.

Specified by:
setCharacterStream in interface org.w3c.dom.ls.LSInput

getByteStream

public java.io.InputStream getByteStream()
Get the byte stream for this input source.

Specified by:
getByteStream in interface org.w3c.dom.ls.LSInput

setByteStream

public void setByteStream(java.io.InputStream istream)
Set the byte stream for this input source.

Specified by:
setByteStream in interface org.w3c.dom.ls.LSInput

getStringData

public java.lang.String getStringData()
Get the String data to parse. If provided, this will always be treated as a sequence of 16-bit units (UTF-16 encoded characters).

Specified by:
getStringData in interface org.w3c.dom.ls.LSInput

setStringData

public void setStringData(java.lang.String stringData)
Set the String data to parse. If provided, this will always be treated as a sequence of 16-bit units (UTF-16 encoded characters).

Specified by:
setStringData in interface org.w3c.dom.ls.LSInput

getSystemId

public java.lang.String getSystemId()
Get the system identifier, a URI reference [IETF RFC 2396], for this input source.

Specified by:
getSystemId in interface org.w3c.dom.ls.LSInput

setSystemId

public void setSystemId(java.lang.String systemId)
Set the system identifier, a URI reference [IETF RFC 2396], for this input source.

Specified by:
setSystemId in interface org.w3c.dom.ls.LSInput

getPublicId

public java.lang.String getPublicId()
Get the publicId for this input source.

Specified by:
getPublicId in interface org.w3c.dom.ls.LSInput

setPublicId

public void setPublicId(java.lang.String publicId)
Set the publicId for this input source.

Specified by:
setPublicId in interface org.w3c.dom.ls.LSInput

getBaseURI

public java.lang.String getBaseURI()
The base URI to be used (see section 5.1.4 in [IETF RFC 2396]) for resolving a relative systemId for the resolved entity to an absolute URI.

Specified by:
getBaseURI in interface org.w3c.dom.ls.LSInput

setBaseURI

public void setBaseURI(java.lang.String baseURI)
The base URI to be used (see section 5.1.4 in [IETF RFC 2396]) for resolving a relative systemId for the resolved entity to an absolute URI.

Specified by:
setBaseURI in interface org.w3c.dom.ls.LSInput

getEncoding

public java.lang.String getEncoding()
Get theencoding of the XML stream for this input source.

Specified by:
getEncoding in interface org.w3c.dom.ls.LSInput

setEncoding

public void setEncoding(java.lang.String encoding)
Set the encoding of the XML stream for this input source.

Specified by:
setEncoding in interface org.w3c.dom.ls.LSInput

getCertifiedText

public boolean getCertifiedText()
If set to true, assume that the input is certified (see section 2.13 in [XML 1.1]) when parsing [XML 1.1].

Specified by:
getCertifiedText in interface org.w3c.dom.ls.LSInput

setCertifiedText

public void setCertifiedText(boolean certifiedText)
If set to true, assume that the input is certified (see section 2.13 in [XML 1.1]) when parsing [XML 1.1].

Specified by:
setCertifiedText in interface org.w3c.dom.ls.LSInput