org.dhmp.io
Class MapInputStream
java.lang.Object
org.dhmp.io.AbstractMapInput
org.dhmp.io.MapInputStream
- All Implemented Interfaces:
- MapInput
- public class MapInputStream
- extends AbstractMapInput
Read a HierarchicalMap previously written by MapOutputStream from InputStream.
- Author:
- hideyuki
Constructor Summary |
MapInputStream(java.io.InputStream in)
Creates a MapInputStream and saves its argument, the input stream in, for later use. |
Methods inherited from class org.dhmp.io.AbstractMapInput |
close, getBaseMap, init, init, readMap, readMap, readMap, readMap, readMapUntil, readMapUntil, replace, setBaseMap |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MapInputStream
public MapInputStream(java.io.InputStream in)
- Creates a MapInputStream and saves its argument, the input stream in, for later use.
- Parameters:
in
- the underlying input stream.
init
protected void init()
- Overrides:
init
in class AbstractMapInput
getType
protected int getType()
throws java.io.IOException
- Specified by:
getType
in class AbstractMapInput
- Throws:
java.io.IOException
getKey
protected java.lang.String getKey()
throws java.io.IOException
- Specified by:
getKey
in class AbstractMapInput
- Throws:
java.io.IOException
getReference
protected int getReference()
throws java.io.IOException
- Specified by:
getReference
in class AbstractMapInput
- Throws:
java.io.IOException
getValue
protected java.lang.Object getValue()
throws java.io.IOException
- Specified by:
getValue
in class AbstractMapInput
- Throws:
java.io.IOException