ar.com.epere4.java2excel.parser
Class Parser

java.lang.Object
  extended by ar.com.epere4.java2excel.parser.Parser

public class Parser
extends java.lang.Object

Author:
epere4

Field Summary
static java.lang.String JAVA2EXCEL_LOCAL_DTD_URL
          The url that identifies the local dtd location.
static java.lang.String JAVA2EXCEL_PUBLIC_ID
          This is the public id of java2excel DTD.
static java.lang.String JAVA2EXCEL_ROOT_ELEMENT
          The root element in the dtd, that needs to be the root element in the xml.
static java.lang.String JAVA2EXCEL_SYSTEM_ID
          This is the system id of java2excel DTD.
 
Constructor Summary
protected Parser()
          Default Constructor.
 
Method Summary
 Java2ExcelDtd parse(java.io.InputStream input)
          This parses the xml input and returns an instance of Java2ExcelDtd ready to be processed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAVA2EXCEL_PUBLIC_ID

public static final java.lang.String JAVA2EXCEL_PUBLIC_ID
This is the public id of java2excel DTD.

See Also:
Doctype.getPublicId(), Constant Field Values

JAVA2EXCEL_SYSTEM_ID

public static final java.lang.String JAVA2EXCEL_SYSTEM_ID
This is the system id of java2excel DTD.

See Also:
Doctype.getSystemId(), Constant Field Values

JAVA2EXCEL_ROOT_ELEMENT

public static final java.lang.String JAVA2EXCEL_ROOT_ELEMENT
The root element in the dtd, that needs to be the root element in the xml.

See Also:
Doctype.getRootElement(), Constant Field Values

JAVA2EXCEL_LOCAL_DTD_URL

public static final java.lang.String JAVA2EXCEL_LOCAL_DTD_URL
The url that identifies the local dtd location.

Constructor Detail

Parser

protected Parser()
Default Constructor.

Method Detail

parse

public final Java2ExcelDtd parse(java.io.InputStream input)
                          throws java.io.IOException,
                                 org.xml.sax.SAXException
This parses the xml input and returns an instance of Java2ExcelDtd ready to be processed.

Parameters:
input - the xml. Must validate against JAVA2EXCEL_LOCAL_DTD_URL.
Returns:
an instance of Java2ExcelDtd ready to be processed
Throws:
java.io.IOException - if in input/output error comes up.
org.xml.sax.SAXException - if the is a problem with the xml format.
Since:
17/02/2006


Copyright © 2006 epere4. All Rights Reserved.