org.dhmp.io
Class MapInputStream

java.lang.Object
  extended byorg.dhmp.io.AbstractMapInput
      extended byorg.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.
 
Method Summary
protected  java.lang.String getKey()
           
protected  int getReference()
           
protected  int getType()
           
protected  java.lang.Object getValue()
           
protected  void init()
           
 
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
 

Constructor Detail

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.
Method Detail

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