home *** CD-ROM | disk | FTP | other *** search
/ Cre@te Online 2000 December / Cre@teOnline CD05.iso / MacSoft / XML ConsoleMax.sea / XML ConsoleMax / Required / xml4j.jar / com / ibm / xml / parser / SAXDriver$SAXDocument.class (.txt) < prev    next >
Encoding:
Java Class File  |  1999-08-30  |  3.1 KB  |  127 lines

  1. package com.ibm.xml.parser;
  2.  
  3. import org.w3c.dom.CDATASection;
  4. import org.w3c.dom.Comment;
  5. import org.w3c.dom.ProcessingInstruction;
  6. import org.w3c.dom.Text;
  7. import org.xml.sax.SAXException;
  8.  
  9. class SAXDriver$SAXDocument extends TXDocument {
  10.    // $FF: synthetic field
  11.    private final SAXDriver this$0;
  12.  
  13.    public DTD createDTD(String var1, ExternalID var2) {
  14.       return this.this$0.dtd = super.createDTD(var1, var2);
  15.    }
  16.  
  17.    public EntityDecl createEntityDecl(String var1, ExternalID var2, boolean var3, String var4) throws RuntimeException {
  18.       if (var4 != null) {
  19.          try {
  20.             this.this$0.dtdHandler.unparsedEntityDecl(var1, var2.getPubidLiteral(), var2.getSystemLiteral(), var4);
  21.          } catch (SAXException var6) {
  22.             throw new SAXDriver.ExceptionWrapper(this.this$0, var6);
  23.          }
  24.       }
  25.  
  26.       return super.createEntityDecl(var1, var2, var3, var4);
  27.    }
  28.  
  29.    public TXNotation createNotation(String var1, ExternalID var2) throws RuntimeException {
  30.       try {
  31.          this.this$0.dtdHandler.notationDecl(var1, var2.getPubidLiteral(), var2.getSystemLiteral());
  32.       } catch (SAXException var4) {
  33.          throw new SAXDriver.ExceptionWrapper(this.this$0, var4);
  34.       }
  35.  
  36.       return super.createNotation(var1, var2);
  37.    }
  38.  
  39.    TXText createAttributeValue(String var1) throws RuntimeException {
  40.       return null;
  41.    }
  42.  
  43.    public Text createTextNode(String var1) throws RuntimeException {
  44.       return this.createTextNode(var1, false);
  45.    }
  46.  
  47.    public TXText createTextNode(String var1, boolean var2) throws RuntimeException {
  48.       if (this.this$0.depth > 0 && !this.this$0.pause) {
  49.          char[] var3 = var1.toCharArray();
  50.  
  51.          try {
  52.             if (var2) {
  53.                this.this$0.documentHandler.ignorableWhitespace(var3, 0, var3.length);
  54.             } else {
  55.                this.this$0.documentHandler.characters(var3, 0, var3.length);
  56.             }
  57.          } catch (SAXException var5) {
  58.             throw new SAXDriver.ExceptionWrapper(this.this$0, var5);
  59.          }
  60.       }
  61.  
  62.       return null;
  63.    }
  64.  
  65.    public TXText createTextNode(char[] var1, int var2, int var3, boolean var4) throws RuntimeException {
  66.       if (this.this$0.depth > 0 && !this.this$0.pause) {
  67.          try {
  68.             if (var4) {
  69.                this.this$0.documentHandler.ignorableWhitespace(var1, var2, var3);
  70.             } else {
  71.                this.this$0.documentHandler.characters(var1, var2, var3);
  72.             }
  73.          } catch (SAXException var6) {
  74.             throw new SAXDriver.ExceptionWrapper(this.this$0, var6);
  75.          }
  76.       }
  77.  
  78.       return null;
  79.    }
  80.  
  81.    public CDATASection createCDATASection(String var1) throws RuntimeException {
  82.       if (!this.this$0.pause) {
  83.          try {
  84.             char[] var2 = var1.toCharArray();
  85.             this.this$0.documentHandler.characters(var2, 0, var2.length);
  86.          } catch (SAXException var3) {
  87.             throw new SAXDriver.ExceptionWrapper(this.this$0, var3);
  88.          }
  89.       }
  90.  
  91.       return null;
  92.    }
  93.  
  94.    public Comment createComment(String var1) {
  95.       return null;
  96.    }
  97.  
  98.    public ProcessingInstruction createProcessingInstruction(String var1, String var2) throws RuntimeException {
  99.       if (!this.this$0.pause) {
  100.          try {
  101.             this.this$0.documentHandler.processingInstruction(var1, var2);
  102.          } catch (SAXException var4) {
  103.             throw new SAXDriver.ExceptionWrapper(this.this$0, var4);
  104.          }
  105.       }
  106.  
  107.       return null;
  108.    }
  109.  
  110.    public StylesheetPI createStylesheetPI(String var1, String var2, String var3, String var4, String var5) throws RuntimeException {
  111.       if (!this.this$0.pause) {
  112.          try {
  113.             this.this$0.documentHandler.processingInstruction(var1, var2);
  114.          } catch (SAXException var7) {
  115.             throw new SAXDriver.ExceptionWrapper(this.this$0, var7);
  116.          }
  117.       }
  118.  
  119.       return null;
  120.    }
  121.  
  122.    SAXDriver$SAXDocument(SAXDriver var1) {
  123.       this.this$0 = var1;
  124.       this.this$0 = var1;
  125.    }
  126. }
  127.