org.placelab.demo.mapview
Class SectionedFileParser
java.lang.Object
org.placelab.demo.mapview.SectionedFileParser
- public class SectionedFileParser
- extends java.lang.Object
|
Field Summary |
protected java.util.Hashtable |
sections
|
|
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 |
sections
protected java.util.Hashtable sections
SectionedFileParser
public SectionedFileParser(java.io.InputStream in)
throws java.io.IOException,
SectionedFileFormatException
SectionedFileParser
public SectionedFileParser(java.lang.String path)
throws java.io.IOException,
SectionedFileFormatException
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()