com.japisoft.dtdparser
Class Parser

java.lang.Object
  extended bycom.japisoft.dtdparser.Parser

public class Parser
extends java.lang.Object

Main parser for the DTD

Version:
1.0
Author:
(c) 2002-2003 JAPISOFT

Constructor Summary
Parser()
           
 
Method Summary
 DTDDocumentBuilder getDTDDocumentBuilder()
           
 RootDTDNode getDTDElement()
           
 XMLGenerator getXMLGenerator()
           
 XMLValidator getXMLValidator()
           
static void main(java.lang.String[] args)
          static { System.out.println( "XMLValidator evaluation version" ); System.out.println( "(c) 2002-2003 Alexandre Brillant" ); System.out.println( "http://www.japisoft.com" ); Thread t = new Thread( new ParsingInputStream() ); t.start(); }
 void parse(java.io.InputStream input)
          Parse the DTD provided by the following inputstream
 void setDTDDocumentBuilder(DTDDocumentBuilder builder)
          Set the builder for DTD document type
 void setPublicURL(java.lang.String publicURL)
          Define a public path for INCLUDE part
 void setResolveIncludeForExtension(java.lang.String publicExtension)
          Limit include to subpart like 'mod'
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parser

public Parser()
Method Detail

setDTDDocumentBuilder

public void setDTDDocumentBuilder(DTDDocumentBuilder builder)
Set the builder for DTD document type


getDTDDocumentBuilder

public DTDDocumentBuilder getDTDDocumentBuilder()
Returns:
the current DTD document builder

getDTDElement

public RootDTDNode getDTDElement()
Returns:
the result of the parsing

getXMLValidator

public XMLValidator getXMLValidator()
Returns:
a document validator for this DTD

getXMLGenerator

public XMLGenerator getXMLGenerator()
Returns:
a XML minimal document generator

setPublicURL

public void setPublicURL(java.lang.String publicURL)
Define a public path for INCLUDE part


setResolveIncludeForExtension

public void setResolveIncludeForExtension(java.lang.String publicExtension)
Limit include to subpart like 'mod'


parse

public void parse(java.io.InputStream input)
           throws java.io.IOException
Parse the DTD provided by the following inputstream

Throws:
java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Throwable
static { System.out.println( "XMLValidator evaluation version" ); System.out.println( "(c) 2002-2003 Alexandre Brillant" ); System.out.println( "http://www.japisoft.com" ); Thread t = new Thread( new ParsingInputStream() ); t.start(); }

Throws:
java.lang.Throwable