de.grogra.msml
Class MTGReader

java.lang.Object
  extended by de.grogra.pf.io.FilterBase
      extended by de.grogra.msml.MTGReader
All Implemented Interfaces:
DOMSource, Filter, FilterSource, RegistryContext, Map

public class MTGReader
extends FilterBase
implements DOMSource


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.grogra.pf.io.FilterSource
FilterSource.MetaDataKey<V>
 
Nested classes/interfaces inherited from interface de.grogra.util.Map
Map.Chain
 
Field Summary
 
Fields inherited from class de.grogra.pf.io.FilterBase
item, source
 
Fields inherited from interface de.grogra.pf.io.FilterSource
AUTO_PROGRESS, DESTINATION_FILE, DESTINATION_URL
 
Fields inherited from interface de.grogra.util.Map
DEFAULT_VALUE, EMPTY_MAP
 
Constructor Summary
MTGReader(FilterItem item, FilterSource source)
           
 
Method Summary
 org.w3c.dom.Document getDocument()
          Returns the data as a DOM document.
protected  java.lang.Object getImpl(FilterSource.MetaDataKey key, java.lang.Object defaultValue)
          This method is invoked by FilterBase.get(Object, Object).
 
Methods inherited from class de.grogra.pf.io.FilterBase
get, getFilter, getFlavor, getMetaData, getRegistry, getSource, getSystemId, initProgressMonitor, setFlavor, setMetaData, setMetaData, setProgress, setSystemId, toString, toURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface de.grogra.pf.io.FilterSource
getFilter, getFlavor, getMetaData, getSystemId, initProgressMonitor, setMetaData, setProgress
 
Methods inherited from interface de.grogra.pf.registry.RegistryContext
getRegistry
 

Constructor Detail

MTGReader

public MTGReader(FilterItem item,
                 FilterSource source)
Method Detail

getDocument

public org.w3c.dom.Document getDocument()
                                 throws java.io.IOException,
                                        org.w3c.dom.DOMException
Description copied from interface: DOMSource
Returns the data as a DOM document.

Specified by:
getDocument in interface DOMSource
Returns:
the data
Throws:
java.io.IOException
org.w3c.dom.DOMException

getImpl

protected java.lang.Object getImpl(FilterSource.MetaDataKey key,
                                   java.lang.Object defaultValue)
Description copied from class: FilterBase
This method is invoked by FilterBase.get(Object, Object). This default implementation forwards to the internal meta data map (see FilterBase.setMetaData(Map)), or returns defaultValue if no such internal map has been set.

Overrides:
getImpl in class FilterBase
Parameters:
key - a key
defaultValue - a default value
Returns:
the associated value, or defaultValue