com.japisoft.dtdparser
Class Parser

java.lang.Object
  |
  +--com.japisoft.dtdparser.Parser

public class Parser
extends java.lang.Object

Main parser for the DTD

Version:
1.1
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)
           
 void parse(java.io.InputStream input)
          Parse this DTD.
 void parse(java.io.Reader input)
          Parse this DTD.
 void parse(SchemaLocator input)
          Parse this DTD.
 void parse(java.lang.String url)
          Parse for this URL.
 void parse(java.net.URL url)
          Parse the DTD to this URL.
 void setDTDDocumentBuilder(DTDDocumentBuilder builder)
          Set the builder for DTD document type
 void setIgnoreComment(boolean ignore)
          Decide to ignore comment.
 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

setIgnoreComment

public void setIgnoreComment(boolean ignore)
Decide to ignore comment. By default true


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

setResolveIncludeForExtension

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


parse

public void parse(java.lang.String url)
           throws java.io.IOException
Parse for this URL. It will use the DTDMapper for updating the local cache

java.io.IOException

parse

public void parse(java.net.URL url)
           throws java.io.IOException
Parse the DTD to this URL. It will not use the DTDMapper

java.io.IOException

parse

public void parse(java.io.InputStream input)
           throws java.io.IOException
Parse this DTD. It will not use the DTDMapper

java.io.IOException

parse

public void parse(java.io.Reader input)
           throws java.io.IOException
Parse this DTD. It will not use the DTDMapper

java.io.IOException

parse

public void parse(SchemaLocator input)
           throws java.io.IOException
Parse this DTD. It will use the DTDMapper for updating the local cache

java.io.IOException

main

public static void main(java.lang.String[] args)
                 throws java.lang.Throwable
java.lang.Throwable