|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.ecore.xmi.impl.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 InputStream |
is
|
protected Map |
options
|
protected XMLResource |
resource
|
protected static String |
SAX_LEXICAL_PROPERTY
|
Constructor Summary | |
XMLLoadImpl(XMLHelper helper)
|
Method Summary | |
XMLDefaultHandler |
createDefaultHandler()
|
protected 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,
InputSource inputSource,
Map options)
|
void |
load(XMLResource resource,
InputStream inputStream,
Map options)
Start parsing with the default handler; either XMI or XML. |
void |
load(XMLResource resource,
Node node,
Map options)
|
protected DefaultHandler |
makeDefaultHandler()
|
protected SAXParser |
makeParser()
Make either a validating or non-validating parser; throw an if one could not be made. |
protected byte[] |
readBuffer()
|
protected void |
traverse(Node node,
XMLLoadImpl.AttributesProxy attributesProxy,
DefaultHandler handler,
LexicalHandler lexicalHandler)
|
protected void |
traverseElement(Element element,
XMLLoadImpl.AttributesProxy attributesProxy,
DefaultHandler handler,
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 String SAX_LEXICAL_PROPERTY
protected static final int BUFFER_SIZE
protected XMLResource resource
protected InputStream is
protected XMLHelper helper
protected Map options
Constructor Detail |
public XMLLoadImpl(XMLHelper helper)
Method Detail |
protected void handleErrors() throws IOException
IOException
public void load(XMLResource resource, InputStream inputStream, Map options) throws IOException
load
in interface XMLLoad
IOException
public void load(XMLResource resource, InputSource inputSource, Map options) throws IOException
load
in interface XMLLoad
IOException
protected SAXParser makeParser() throws ParserConfigurationException, SAXException
ParserConfigurationException
SAXException
public XMLDefaultHandler createDefaultHandler()
createDefaultHandler
in interface XMLLoad
protected DefaultHandler makeDefaultHandler()
protected String getEncoding() throws IOException
IOException
protected byte[] readBuffer() throws IOException
IOException
public void load(XMLResource resource, Node node, Map options) throws IOException
load
in interface XMLLoad
IOException
protected void traverseElement(Element element, XMLLoadImpl.AttributesProxy attributesProxy, DefaultHandler handler, LexicalHandler lexicalHandler) throws SAXException
SAXException
protected void traverse(Node node, XMLLoadImpl.AttributesProxy attributesProxy, DefaultHandler handler, LexicalHandler lexicalHandler) throws SAXException
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 |