org.objectweb.jonas_lib.deployment.validation
Class JLSInput

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.validation.JLSInput
All Implemented Interfaces:
org.w3c.dom.ls.LSInput

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

A wrapper around the InputSource class returned by EntityResolver to be returned by the ResourceResolver class.

Author:
Patrick Smith, Greg Lapouchnian

Constructor Summary
JLSInput(org.xml.sax.InputSource source)
          Creates a wrapper around the given InputSource object.
 
Method Summary
 java.lang.String getBaseURI()
           
 java.io.InputStream getByteStream()
          Return the byte stream representation of the resource.
 boolean getCertifiedText()
           
 java.io.Reader getCharacterStream()
          Return the character stream representation of the resource.
 java.lang.String getEncoding()
          Returns the encoding of the resource.
 java.lang.String getPublicId()
          Returns the Public ID of the resource.
 java.lang.String getStringData()
           
 java.lang.String getSystemId()
          Returns the System ID of the resource.
 void setBaseURI(java.lang.String arg0)
           
 void setByteStream(java.io.InputStream arg0)
           
 void setCertifiedText(boolean arg0)
           
 void setCharacterStream(java.io.Reader arg0)
           
 void setEncoding(java.lang.String arg0)
           
 void setPublicId(java.lang.String id)
           
 void setStringData(java.lang.String arg0)
           
 void setSystemId(java.lang.String id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JLSInput

public JLSInput(org.xml.sax.InputSource source)
Creates a wrapper around the given InputSource object.

Parameters:
source -
Method Detail

getCharacterStream

public java.io.Reader getCharacterStream()
Return the character stream representation of the resource.

Specified by:
getCharacterStream in interface org.w3c.dom.ls.LSInput
Returns:
character stream representation of the resource

setCharacterStream

public void setCharacterStream(java.io.Reader arg0)
Specified by:
setCharacterStream in interface org.w3c.dom.ls.LSInput

getByteStream

public java.io.InputStream getByteStream()
Return the byte stream representation of the resource.

Specified by:
getByteStream in interface org.w3c.dom.ls.LSInput
Returns:
byte stream representation of the resource

setByteStream

public void setByteStream(java.io.InputStream arg0)
Specified by:
setByteStream in interface org.w3c.dom.ls.LSInput

getStringData

public java.lang.String getStringData()
Specified by:
getStringData in interface org.w3c.dom.ls.LSInput

setStringData

public void setStringData(java.lang.String arg0)
Specified by:
setStringData in interface org.w3c.dom.ls.LSInput

getSystemId

public java.lang.String getSystemId()
Returns the System ID of the resource.

Specified by:
getSystemId in interface org.w3c.dom.ls.LSInput
Returns:
the system ID of the resource

setSystemId

public void setSystemId(java.lang.String id)
Specified by:
setSystemId in interface org.w3c.dom.ls.LSInput

getPublicId

public java.lang.String getPublicId()
Returns the Public ID of the resource.

Specified by:
getPublicId in interface org.w3c.dom.ls.LSInput
Returns:
the public ID of the resource

setPublicId

public void setPublicId(java.lang.String id)
Specified by:
setPublicId in interface org.w3c.dom.ls.LSInput

getBaseURI

public java.lang.String getBaseURI()
Specified by:
getBaseURI in interface org.w3c.dom.ls.LSInput

setBaseURI

public void setBaseURI(java.lang.String arg0)
Specified by:
setBaseURI in interface org.w3c.dom.ls.LSInput

getEncoding

public java.lang.String getEncoding()
Returns the encoding of the resource.

Specified by:
getEncoding in interface org.w3c.dom.ls.LSInput
Returns:
the encoding of the resource

setEncoding

public void setEncoding(java.lang.String arg0)
Specified by:
setEncoding in interface org.w3c.dom.ls.LSInput

getCertifiedText

public boolean getCertifiedText()
Specified by:
getCertifiedText in interface org.w3c.dom.ls.LSInput

setCertifiedText

public void setCertifiedText(boolean arg0)
Specified by:
setCertifiedText in interface org.w3c.dom.ls.LSInput