org.eclipse.emf.ecore.xmi.impl
Class XMLLoadImpl

java.lang.Object
  |
  +--org.eclipse.emf.ecore.xmi.impl.XMLLoadImpl
All Implemented Interfaces:
XMLLoad
Direct Known Subclasses:
XMILoadImpl

public class XMLLoadImpl
extends java.lang.Object
implements XMLLoad

This class begins parsing with the given input stream using the XML deserializer.


Field Summary
protected static int BUFFER_SIZE
           
protected  XMLHelper helper
           
protected  java.io.InputStream is
           
protected  java.util.Map options
           
protected  XMLResource resource
           
 
Constructor Summary
XMLLoadImpl(XMLHelper helper)
           
 
Method Summary
protected  java.lang.String getEncoding()
           
 void load(XMLResource resource, java.io.InputStream inputStream, java.util.Map options)
          Start parsing with the default handler; either XMI or XML.
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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BUFFER_SIZE

protected static final int BUFFER_SIZE

resource

protected XMLResource resource

is

protected java.io.InputStream is

helper

protected XMLHelper helper

options

protected java.util.Map options
Constructor Detail

XMLLoadImpl

public XMLLoadImpl(XMLHelper helper)
Method Detail

load

public void load(XMLResource resource,
                 java.io.InputStream inputStream,
                 java.util.Map options)
          throws java.io.IOException
Start parsing with the default handler; either XMI or XML.
Specified by:
load in interface XMLLoad

makeParser

protected javax.xml.parsers.SAXParser makeParser()
                                          throws javax.xml.parsers.ParserConfigurationException,
                                                 org.xml.sax.SAXException
Make either a validating or non-validating parser; throw an if one could not be made.

makeDefaultHandler

protected org.xml.sax.helpers.DefaultHandler makeDefaultHandler()

getEncoding

protected java.lang.String getEncoding()
                                throws java.io.IOException

readBuffer

protected byte[] readBuffer()
                     throws java.io.IOException

Copyright 2001-2002 IBM Corporation and others.
All Rights Reserved.