|
|||||||||
| Home >> All >> com >> eireneh >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.eireneh.util
Class DOMHandlerBase

java.lang.Objectorg.xml.sax.HandlerBase
com.eireneh.util.DOMHandlerBase
- All Implemented Interfaces:
- org.xml.sax.DocumentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler
- public class DOMHandlerBase
- extends org.xml.sax.HandlerBase
The DOMHandlerBase class implements the SAX class HandlerBase and from the SAX events generated from a parse, generates a DOM XML document, embedded into another.
|
Distribution Licence: Project B is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License, version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. The License is available on the internet here, by writing to Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA, Or locally at the Licence link below. The copyright to this program is held by it's authors. |
- Version:
- D0.I0.T0
| Field Summary | |
private org.w3c.dom.Node |
base
The Element to start adding at |
private org.w3c.dom.Node |
current
The Element that we are currently adding at |
private org.w3c.dom.Document |
doc
|
private java.util.Stack |
stack
The stack of elements that we have built on |
| Constructor Summary | |
DOMHandlerBase(org.w3c.dom.Node base)
Default constructor. |
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Some text data |
void |
endDocument()
End document |
void |
endElement(java.lang.String name)
end element |
void |
error(org.xml.sax.SAXParseException ex)
Error |
void |
fatalError(org.xml.sax.SAXParseException ex)
Fatal error |
private java.lang.String |
getLocationString(org.xml.sax.SAXParseException ex)
Returns a string of the location |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Ignorable whitespace |
void |
processingInstruction(java.lang.String target,
java.lang.String data)
Processing instruction |
void |
startDocument()
Start document. |
void |
startElement(java.lang.String name,
org.xml.sax.AttributeList attrs)
The start of an Element |
void |
warning(org.xml.sax.SAXParseException ex)
Warning |
| Methods inherited from class org.xml.sax.HandlerBase |
notationDecl, resolveEntity, setDocumentLocator, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
doc
private org.w3c.dom.Document doc
base
private org.w3c.dom.Node base
- The Element to start adding at
current
private org.w3c.dom.Node current
- The Element that we are currently adding at
stack
private java.util.Stack stack
- The stack of elements that we have built on
| Constructor Detail |
DOMHandlerBase
public DOMHandlerBase(org.w3c.dom.Node base)
- Default constructor. A null base element means we assume that
the document is all ours. In this case we do insert PIs into
the Document. Otherwise we dont.
| Method Detail |
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data)
- Processing instruction
startDocument
public void startDocument()
- Start document.
startElement
public void startElement(java.lang.String name, org.xml.sax.AttributeList attrs)
- The start of an Element
characters
public void characters(char[] ch,
int start,
int length)
- Some text data
ignorableWhitespace
public void ignorableWhitespace(char[] ch,
int start,
int length)
- Ignorable whitespace
endElement
public void endElement(java.lang.String name)
- end element
endDocument
public void endDocument()
- End document
warning
public void warning(org.xml.sax.SAXParseException ex)
- Warning
error
public void error(org.xml.sax.SAXParseException ex)
- Error
fatalError
public void fatalError(org.xml.sax.SAXParseException ex) throws org.xml.sax.SAXException
- Fatal error
getLocationString
private java.lang.String getLocationString(org.xml.sax.SAXParseException ex)
- Returns a string of the location
|
|||||||||
| Home >> All >> com >> eireneh >> [ util overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC