Package totalcross.xml
Class XmlReadableByteArray
- java.lang.Object
-
- totalcross.xml.XmlReadableByteArray
-
- All Implemented Interfaces:
XmlReadable
- Direct Known Subclasses:
XmlReadableFile,XmlReadablePDBFile,XmlReadablePort,XmlReadableString
public class XmlReadableByteArray extends java.lang.Object implements XmlReadable
Make an XmlReadable from a byte array.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedXmlReadableByteArray()XmlReadableByteArray(byte[] source)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URIgetBaseURI()Get the base URI attached to this XmlReadablevoidreadXml(XmlReader rdr)Read this XmlReadable through an XmlReader parser.voidsetCaseInsensitive(boolean caseInsensitive)
-
-
-
Field Detail
-
buf
protected byte[] buf
-
baseURI
protected URI baseURI
-
-
Method Detail
-
readXml
public void readXml(XmlReader rdr) throws SyntaxException, IOException
Description copied from interface:XmlReadableRead this XmlReadable through an XmlReader parser.- Specified by:
readXmlin interfaceXmlReadable- Parameters:
rdr- the XmlReader that will report the SAX events- Throws:
SyntaxExceptionIOException
-
getBaseURI
public URI getBaseURI()
Description copied from interface:XmlReadableGet the base URI attached to this XmlReadable- Specified by:
getBaseURIin interfaceXmlReadable- Returns:
- the base URI attached to this XmlReadable
-
setCaseInsensitive
public void setCaseInsensitive(boolean caseInsensitive)
- Specified by:
setCaseInsensitivein interfaceXmlReadable
-
-