Package org.xmlresolver.sources
Class ResolverLSInput
- java.lang.Object
-
- org.xmlresolver.sources.ResolverLSInput
-
- All Implemented Interfaces:
org.w3c.dom.ls.LSInput
public class ResolverLSInput extends java.lang.Object implements org.w3c.dom.ls.LSInputAnLSInputwith aresolvedURI.
-
-
Field Summary
Fields Modifier and Type Field Description java.net.URIresolvedURIThe underlying, resolved URI.
-
Constructor Summary
Constructors Constructor Description ResolverLSInput(ResolvedResource rsrc, java.lang.String publicId)Construct theLSInputwhile preserving the local URI.ResolverLSInput(Resource rsrc, java.lang.String publicId, java.lang.String systemId)Construct theLSInputwhile preserving the local URI.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetBaseURI()The LSInput API...java.io.InputStreamgetByteStream()The LSInput API...booleangetCertifiedText()The LSInput API...java.io.ReadergetCharacterStream()The LSInput API...java.lang.StringgetEncoding()The LSInput API...java.lang.StringgetPublicId()The LSInput API...java.lang.StringgetStringData()The LSInput API...java.lang.StringgetSystemId()The LSInput API...voidsetBaseURI(java.lang.String string)The LSInput API...voidsetByteStream(java.io.InputStream inputStream)The LSInput API...voidsetCertifiedText(boolean b)The LSInput API...voidsetCharacterStream(java.io.Reader reader)The LSInput API...voidsetEncoding(java.lang.String string)The LSInput API...voidsetPublicId(java.lang.String string)The LSInput API...voidsetStringData(java.lang.String string)The LSInput API...voidsetSystemId(java.lang.String string)The LSInput API...
-
-
-
Constructor Detail
-
ResolverLSInput
public ResolverLSInput(Resource rsrc, java.lang.String publicId, java.lang.String systemId)
Construct theLSInputwhile preserving the local URI.- Parameters:
rsrc- The resolver resource.publicId- The publicId.systemId- The systemId.
-
ResolverLSInput
public ResolverLSInput(ResolvedResource rsrc, java.lang.String publicId)
Construct theLSInputwhile preserving the local URI. If the resolved resource is available, we can get everything except the public identifier from that resolved resource.- Parameters:
rsrc- The resolved resource.publicId- The publicId.
-
-
Method Detail
-
getCharacterStream
public java.io.Reader getCharacterStream()
The LSInput API...- Specified by:
getCharacterStreamin interfaceorg.w3c.dom.ls.LSInput
-
setCharacterStream
public void setCharacterStream(java.io.Reader reader)
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setCharacterStreamin interfaceorg.w3c.dom.ls.LSInput
-
getByteStream
public java.io.InputStream getByteStream()
The LSInput API...- Specified by:
getByteStreamin interfaceorg.w3c.dom.ls.LSInput
-
setByteStream
public void setByteStream(java.io.InputStream inputStream)
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setByteStreamin interfaceorg.w3c.dom.ls.LSInput
-
getStringData
public java.lang.String getStringData()
The LSInput API...- Specified by:
getStringDatain interfaceorg.w3c.dom.ls.LSInput
-
setStringData
public void setStringData(java.lang.String string)
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setStringDatain interfaceorg.w3c.dom.ls.LSInput
-
getSystemId
public java.lang.String getSystemId()
The LSInput API...- Specified by:
getSystemIdin interfaceorg.w3c.dom.ls.LSInput
-
setSystemId
public void setSystemId(java.lang.String string)
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setSystemIdin interfaceorg.w3c.dom.ls.LSInput
-
getPublicId
public java.lang.String getPublicId()
The LSInput API...- Specified by:
getPublicIdin interfaceorg.w3c.dom.ls.LSInput
-
setPublicId
public void setPublicId(java.lang.String string)
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setPublicIdin interfaceorg.w3c.dom.ls.LSInput
-
getBaseURI
public java.lang.String getBaseURI()
The LSInput API...- Specified by:
getBaseURIin interfaceorg.w3c.dom.ls.LSInput
-
setBaseURI
public void setBaseURI(java.lang.String string)
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setBaseURIin interfaceorg.w3c.dom.ls.LSInput
-
getEncoding
public java.lang.String getEncoding()
The LSInput API...- Specified by:
getEncodingin interfaceorg.w3c.dom.ls.LSInput
-
setEncoding
public void setEncoding(java.lang.String string)
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setEncodingin interfaceorg.w3c.dom.ls.LSInput
-
getCertifiedText
public boolean getCertifiedText()
The LSInput API...- Specified by:
getCertifiedTextin interfaceorg.w3c.dom.ls.LSInput
-
setCertifiedText
public void setCertifiedText(boolean b)
The LSInput API... This method always throws anUnsupportedOperationException.- Specified by:
setCertifiedTextin interfaceorg.w3c.dom.ls.LSInput
-
-