|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.openlca.dataconversion.LCADocumentBuilder
public class LCADocumentBuilder
Builds LCADocument objects from XML files. Extends
DefaultHandler.
| Constructor Summary | |
|---|---|
LCADocumentBuilder()
Creates a new instance of LCADocumentBuilder. |
|
LCADocumentBuilder(javax.xml.parsers.SAXParser parser)
Creates a new instance of LCADocumentBuilder. |
|
| Method Summary | |
|---|---|
void |
characters(char[] chars,
int start,
int end)
|
LCADocument |
getLCADocument(java.io.File file)
Returns an LCADocument from a given file. |
java.util.List<LCADocument> |
getLCADocuments(java.io.File[] files)
Returns a list of LCA documents from an file array. |
void |
startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qname,
org.xml.sax.Attributes attributes)
|
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LCADocumentBuilder()
throws javax.xml.parsers.ParserConfigurationException,
org.xml.sax.SAXException
LCADocumentBuilder.
org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationExceptionpublic LCADocumentBuilder(javax.xml.parsers.SAXParser parser)
LCADocumentBuilder.
parser - possible object is SAXParser.| Method Detail |
|---|
public void characters(char[] chars,
int start,
int end)
throws org.xml.sax.SAXException
characters in interface org.xml.sax.ContentHandlercharacters in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
public LCADocument getLCADocument(java.io.File file)
throws org.xml.sax.SAXException,
java.io.IOException,
ConverterException
LCADocument from a given file.
file - Allowed object is an (XML) File.
LCADocument.
org.xml.sax.SAXException
java.io.IOException
ConverterException
public java.util.List<LCADocument> getLCADocuments(java.io.File[] files)
throws org.xml.sax.SAXException,
java.io.IOException
files - File array with XML documents.
LCADocument.
java.io.IOException
org.xml.sax.SAXException
public void startElement(java.lang.String uri,
java.lang.String name,
java.lang.String qname,
org.xml.sax.Attributes attributes)
throws org.xml.sax.SAXException
startElement in interface org.xml.sax.ContentHandlerstartElement in class org.xml.sax.helpers.DefaultHandlerorg.xml.sax.SAXException
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||