public class XmlReadablePDBFile extends XmlReadableByteArray
XmlReader rdr = new XmlReader(); rdr.setContentHandler(...); rdr.parse(new XmlReadablePDBFile("HtmlSampleDB.memo.DATA",1));
baseURI, buf
Constructor and Description |
---|
XmlReadablePDBFile(java.lang.String file,
int recordNo)
Constructor
|
XmlReadablePDBFile(URI baseURI)
Constructor
|
getBaseURI, readXml, setCaseInsensitive
public XmlReadablePDBFile(URI baseURI) throws IOException
baseURI
- URI for this XmlReadableIOException
- 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.)
public XmlReadablePDBFile(java.lang.String file, int recordNo) throws IOException
file
- The file name to open. E.G.: HtmlSampleDB.memo.DATArecordNo
- The record number to readIOException
- If an I/O error occurs or if the record's size is 0.