org.placelab.demo.mapview
Class SectionedFileParser

java.lang.Object
  extended byorg.placelab.demo.mapview.SectionedFileParser

public class SectionedFileParser
extends java.lang.Object


Field Summary
protected  java.util.Hashtable sections
           
 
Constructor Summary
SectionedFileParser(java.io.InputStream in)
           
SectionedFileParser(java.lang.String path)
           
 
Method Summary
 java.util.Hashtable allSections()
           
 java.util.Hashtable getSection(java.lang.String sectionName)
           
static void write(java.util.Hashtable sections, java.io.OutputStream out)
          Writes the supplied sectioned file format hashtable to the specified outputstream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sections

protected java.util.Hashtable sections
Constructor Detail

SectionedFileParser

public SectionedFileParser(java.io.InputStream in)
                    throws java.io.IOException,
                           SectionedFileFormatException

SectionedFileParser

public SectionedFileParser(java.lang.String path)
                    throws java.io.IOException,
                           SectionedFileFormatException
Method Detail

getSection

public java.util.Hashtable getSection(java.lang.String sectionName)

allSections

public java.util.Hashtable allSections()

write

public static void write(java.util.Hashtable sections,
                         java.io.OutputStream out)
Writes the supplied sectioned file format hashtable to the specified outputstream.

note: This method does not close the supplied OutputStream

Parameters:
sections - must be in the same format as is returned from allSections()