Class 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));
     
    • 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=18
         
        Does not take into account the Category filter ("html" in the sample above.)
      • XmlReadablePDBFile

        public XmlReadablePDBFile​(java.lang.String file,
                                  int recordNo)
                           throws IOException
        Constructor
        Parameters:
        file - The file name to open. E.G.: HtmlSampleDB.memo.DATA
        recordNo - The record number to read
        Throws:
        IOException - If an I/O error occurs or if the record's size is 0.