|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl
public class XMLLoadImpl
This class begins parsing with the given input stream using the XML deserializer.
Nested Class Summary | |
---|---|
protected static class |
XMLLoadImpl.AttributesProxy
|
Field Summary | |
---|---|
protected static int |
BUFFER_SIZE
|
protected XMLHelper |
helper
|
protected java.io.InputStream |
is
|
protected boolean |
namespaceAware
|
protected java.util.Map<?,?> |
options
|
protected XMLResource |
resource
|
protected static java.lang.String |
SAX_LEXICAL_PROPERTY
|
Constructor Summary | |
---|---|
XMLLoadImpl(XMLHelper helper)
|
Method Summary | |
---|---|
XMLDefaultHandler |
createDefaultHandler()
|
protected java.lang.String |
getEncoding()
Deprecated. since 2.2 The encoding will be reported by the parser using SAX 2 Locator |
protected void |
handleErrors()
|
void |
load(XMLResource resource,
org.xml.sax.InputSource inputSource,
java.util.Map<?,?> options)
|
void |
load(XMLResource resource,
java.io.InputStream inputStream,
java.util.Map<?,?> options)
Start parsing with the default handler; either XMI or XML. |
void |
load(XMLResource resource,
org.w3c.dom.Node node,
java.util.Map<?,?> options)
|
protected org.xml.sax.helpers.DefaultHandler |
makeDefaultHandler()
|
protected javax.xml.parsers.SAXParser |
makeParser()
Make either a validating or non-validating parser; throw an if one could not be made. |
protected byte[] |
readBuffer()
|
protected void |
traverse(org.w3c.dom.Node node,
XMLLoadImpl.AttributesProxy attributesProxy,
org.xml.sax.helpers.DefaultHandler handler,
org.xml.sax.ext.LexicalHandler lexicalHandler)
|
protected void |
traverseElement(org.w3c.dom.Element element,
XMLLoadImpl.AttributesProxy attributesProxy,
org.xml.sax.helpers.DefaultHandler handler,
org.xml.sax.ext.LexicalHandler lexicalHandler)
Special case: traversing root element using namespaces in scope |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final java.lang.String SAX_LEXICAL_PROPERTY
protected static final int BUFFER_SIZE
protected XMLResource resource
protected java.io.InputStream is
protected XMLHelper helper
protected java.util.Map<?,?> options
protected boolean namespaceAware
Constructor Detail |
---|
public XMLLoadImpl(XMLHelper helper)
Method Detail |
---|
protected void handleErrors() throws java.io.IOException
java.io.IOException
public void load(XMLResource resource, java.io.InputStream inputStream, java.util.Map<?,?> options) throws java.io.IOException
load
in interface XMLLoad
java.io.IOException
public void load(XMLResource resource, org.xml.sax.InputSource inputSource, java.util.Map<?,?> options) throws java.io.IOException
load
in interface XMLLoad
java.io.IOException
protected javax.xml.parsers.SAXParser makeParser() throws javax.xml.parsers.ParserConfigurationException, org.xml.sax.SAXException
javax.xml.parsers.ParserConfigurationException
org.xml.sax.SAXException
public XMLDefaultHandler createDefaultHandler()
createDefaultHandler
in interface XMLLoad
protected org.xml.sax.helpers.DefaultHandler makeDefaultHandler()
@Deprecated protected java.lang.String getEncoding() throws java.io.IOException
java.io.IOException
protected byte[] readBuffer() throws java.io.IOException
java.io.IOException
public void load(XMLResource resource, org.w3c.dom.Node node, java.util.Map<?,?> options) throws java.io.IOException
load
in interface XMLLoad
java.io.IOException
protected void traverseElement(org.w3c.dom.Element element, XMLLoadImpl.AttributesProxy attributesProxy, org.xml.sax.helpers.DefaultHandler handler, org.xml.sax.ext.LexicalHandler lexicalHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
protected void traverse(org.w3c.dom.Node node, XMLLoadImpl.AttributesProxy attributesProxy, org.xml.sax.helpers.DefaultHandler handler, org.xml.sax.ext.LexicalHandler lexicalHandler) throws org.xml.sax.SAXException
org.xml.sax.SAXException
|
Copyright 2001-2006 IBM Corporation and others. All Rights Reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |