net.sf.flatpack.xml
Class MapParser

java.lang.Object
  extended by net.sf.flatpack.xml.MapParser

public final class MapParser
extends java.lang.Object

Author:
zepernick Parses a PZmap definition XML file

Method Summary
static java.util.Map parse(java.io.InputStream xmlStream)
          Deprecated. please use parse(Reader)
static java.util.Map parse(java.io.Reader xmlStreamReader, Parser pzparser)
          New method based on Reader.
static MetaData parseMap(java.io.Reader xmlStreamReader, Parser pzparser)
          New method based on Reader.
static void setDebug(boolean b)
          If set to true, debug information for the map file will be thrown to the console after the parse is finished
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static java.util.Map parse(java.io.InputStream xmlStream)
                           throws org.jdom.JDOMException,
                                  java.io.IOException
Deprecated. please use parse(Reader)

Method based on InputStream. Reads the XMLDocument for a PZMetaData file from an InputStream, WebStart combatible. Parses the XML file, and returns a Map containing Lists of ColumnMetaData.

Parameters:
xmlStream -
Returns:
Map with their corrisponding
Throws:
java.io.IOException
org.jdom.JDOMException

parse

public static java.util.Map parse(java.io.Reader xmlStreamReader,
                                  Parser pzparser)
                           throws org.jdom.JDOMException,
                                  java.io.IOException
New method based on Reader. Reads the XMLDocument for a PZMetaData file from an InputStream, WebStart combatible. Parses the XML file, and returns a Map containing Lists of ColumnMetaData.

Parameters:
xmlStreamReader -
pzparser - Can be null. Allows additional opts to be set durring the XML map read
Returns:
Map with their corrisponding
Throws:
java.io.IOException
org.jdom.JDOMException

setDebug

public static void setDebug(boolean b)
If set to true, debug information for the map file will be thrown to the console after the parse is finished

Parameters:
b -

parseMap

public static MetaData parseMap(java.io.Reader xmlStreamReader,
                                Parser pzparser)
                         throws org.jdom.JDOMException,
                                java.io.IOException
New method based on Reader. Reads the XMLDocument for a PZMetaData file from an InputStream, WebStart combatible. Parses the XML file, and returns a Map containing Lists of ColumnMetaData.

Parameters:
xmlStreamReader -
pzparser - Can be null. Allows additional opts to be set durring the XML map read
Returns:
Map with their corrisponding
Throws:
java.io.IOException
org.jdom.JDOMException


Copyright © 2006-2011 Appendium - Portfolio Financing Platform. All Rights Reserved.