Package totalcross.xml
Class XmlReadablePDBFile
- java.lang.Object
-
- totalcross.xml.XmlReadableByteArray
-
- totalcross.xml.XmlReadablePDBFile
-
- All Implemented Interfaces:
XmlReadable
public class XmlReadablePDBFile extends XmlReadableByteArray
Make an XmlReadable from a PDBFile Example:XmlReader rdr = new XmlReader(); rdr.setContentHandler(...); rdr.parse(new XmlReadablePDBFile("HtmlSampleDB.memo.DATA",1));
-
-
Field Summary
-
Fields inherited from class totalcross.xml.XmlReadableByteArray
baseURI, buf
-
-
Constructor Summary
Constructors Constructor Description XmlReadablePDBFile(java.lang.String file, int recordNo)ConstructorXmlReadablePDBFile(URI baseURI)Constructor
-
Method Summary
-
Methods inherited from class totalcross.xml.XmlReadableByteArray
getBaseURI, readXml, setCaseInsensitive
-
-
-
-
Constructor Detail
-
XmlReadablePDBFile
public XmlReadablePDBFile(URI baseURI) throws IOException
Constructor- Parameters:
baseURI- URI for this XmlReadable- Throws:
IOException- Impl Note: We need to convert to the TotalCross representation of a DM scheme: From:"dm://memo.DATA/HtmlSampleDB/html/18" Scheme: "dm" Authority: "memo.DATA" UserInfo: (undefined) Host: "memo.DATA" Port: "-1" Path: "/HtmlSampleDB/html/0"To:"HtmlSampleDB.memo.DATA" recordNo=18Does not take into account the Category filter ("html" in the sample above.)
-
XmlReadablePDBFile
public XmlReadablePDBFile(java.lang.String file, int recordNo) throws IOExceptionConstructor- Parameters:
file- The file name to open. E.G.: HtmlSampleDB.memo.DATArecordNo- The record number to read- Throws:
IOException- If an I/O error occurs or if the record's size is 0.
-
-