org.deegree.gml
Class GMLInputFactory

java.lang.Object
  extended by org.deegree.gml.GMLInputFactory

public class GMLInputFactory
extends Object

Factory for creating GMLStreamReader instances.

Version:
$Revision: 31639 $, $Date: 2011-08-24 21:02:10 +0200 (Wed, 24 Aug 2011) $
Author:
Markus Schneider, last edited by: $Author: mschneider $
See Also:
GMLObject, GMLStreamReader

Constructor Summary
GMLInputFactory()
           
 
Method Summary
static GMLStreamReader createGMLStreamReader(GMLVersion version, URL url)
          Creates a new GMLStreamReader instance for reading GML of the specified version.
static GMLStreamReader createGMLStreamReader(GMLVersion version, XMLStreamReader xmlStream)
          Creates a new GMLStreamReader instance for reading GML of the specified version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GMLInputFactory

public GMLInputFactory()
Method Detail

createGMLStreamReader

public static GMLStreamReader createGMLStreamReader(GMLVersion version,
                                                    XMLStreamReader xmlStream)
                                             throws XMLStreamException
Creates a new GMLStreamReader instance for reading GML of the specified version.

Parameters:
version - GML version, must not be null
xmlStream - XML stream used to read the input, must not be null and either point to a START_DOCUMENT event or a START_ELEMENT event of a GML object element
Returns:
initialized GMLStreamReader
Throws:
XMLStreamException

createGMLStreamReader

public static GMLStreamReader createGMLStreamReader(GMLVersion version,
                                                    URL url)
                                             throws XMLStreamException,
                                                    FactoryConfigurationError,
                                                    IOException
Creates a new GMLStreamReader instance for reading GML of the specified version.

Parameters:
version - GML version, must not be null
url - URL used to read the input, must not be null
Returns:
initialized GMLStreamReader
Throws:
IOException
FactoryConfigurationError
XMLStreamException


Copyright © 2011. All Rights Reserved.