public class Input
extends java.lang.Object
implements org.w3c.dom.ls.LSInput
Schema
when using
getClass().getResourceAsStream("path/to/file.xsd")LSInput
,
LSResourceResolver
,
ResourceResolver
Constructor and Description |
---|
Input(java.lang.String publicId,
java.lang.String sysId,
java.io.InputStream input)
Constructor to generate a customized input source Input using an
InputStream
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseURI() |
java.io.InputStream |
getByteStream() |
boolean |
getCertifiedText() |
java.io.Reader |
getCharacterStream() |
java.lang.String |
getEncoding() |
java.io.BufferedInputStream |
getInputStream() |
java.lang.String |
getPublicId() |
java.lang.String |
getStringData() |
java.lang.String |
getSystemId() |
void |
setBaseURI(java.lang.String baseURI) |
void |
setByteStream(java.io.InputStream byteStream) |
void |
setCertifiedText(boolean certifiedText) |
void |
setCharacterStream(java.io.Reader characterStream) |
void |
setEncoding(java.lang.String encoding) |
void |
setInputStream(java.io.BufferedInputStream inputStream) |
void |
setPublicId(java.lang.String publicId) |
void |
setStringData(java.lang.String stringData) |
void |
setSystemId(java.lang.String systemId) |
public Input(java.lang.String publicId, java.lang.String sysId, java.io.InputStream input)
publicId
- public ID set by the ResourceResolversysId
- System ID set by the ResourceResolverinput
- InputStream to be usedpublic java.lang.String getPublicId()
getPublicId
in interface org.w3c.dom.ls.LSInput
public void setPublicId(java.lang.String publicId)
setPublicId
in interface org.w3c.dom.ls.LSInput
public java.lang.String getBaseURI()
getBaseURI
in interface org.w3c.dom.ls.LSInput
public java.io.InputStream getByteStream()
getByteStream
in interface org.w3c.dom.ls.LSInput
public boolean getCertifiedText()
getCertifiedText
in interface org.w3c.dom.ls.LSInput
public java.io.Reader getCharacterStream()
getCharacterStream
in interface org.w3c.dom.ls.LSInput
public java.lang.String getEncoding()
getEncoding
in interface org.w3c.dom.ls.LSInput
public java.lang.String getStringData()
getStringData
in interface org.w3c.dom.ls.LSInput
public void setBaseURI(java.lang.String baseURI)
setBaseURI
in interface org.w3c.dom.ls.LSInput
public void setByteStream(java.io.InputStream byteStream)
setByteStream
in interface org.w3c.dom.ls.LSInput
public void setCertifiedText(boolean certifiedText)
setCertifiedText
in interface org.w3c.dom.ls.LSInput
public void setCharacterStream(java.io.Reader characterStream)
setCharacterStream
in interface org.w3c.dom.ls.LSInput
public void setEncoding(java.lang.String encoding)
setEncoding
in interface org.w3c.dom.ls.LSInput
public void setStringData(java.lang.String stringData)
setStringData
in interface org.w3c.dom.ls.LSInput
public java.lang.String getSystemId()
getSystemId
in interface org.w3c.dom.ls.LSInput
public void setSystemId(java.lang.String systemId)
setSystemId
in interface org.w3c.dom.ls.LSInput
public java.io.BufferedInputStream getInputStream()
public void setInputStream(java.io.BufferedInputStream inputStream)