org.openstreetmap.osmosis.core.store
Class DataInputStoreReader

java.lang.Object
  extended by org.openstreetmap.osmosis.core.store.DataInputStoreReader
All Implemented Interfaces:
StoreReader

public class DataInputStoreReader
extends java.lang.Object
implements StoreReader

Allows persisted input to be read from a DataInput implementation.

Author:
Brett Henderson

Constructor Summary
DataInputStoreReader(java.io.DataInput input)
          Creates a new instance.
 
Method Summary
 boolean readBoolean()
          Reads a boolean from storage.
 byte readByte()
          Reads a byte from storage.
 char readCharacter()
          Reads a character from storage.
 double readDouble()
          Reads a double from storage.
 int readInteger()
          Reads an integer from storage.
 long readLong()
          Reads a long from storage.
 java.lang.String readString()
          Reads a String from storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataInputStoreReader

public DataInputStoreReader(java.io.DataInput input)
Creates a new instance.

Parameters:
input - The data input to read data from.
Method Detail

readBoolean

public boolean readBoolean()
Reads a boolean from storage.

Specified by:
readBoolean in interface StoreReader
Returns:
The loaded value.

readByte

public byte readByte()
Reads a byte from storage.

Specified by:
readByte in interface StoreReader
Returns:
The loaded value.

readCharacter

public char readCharacter()
Reads a character from storage.

Specified by:
readCharacter in interface StoreReader
Returns:
The loaded value.

readInteger

public int readInteger()
Reads an integer from storage.

Specified by:
readInteger in interface StoreReader
Returns:
The loaded value.

readLong

public long readLong()
Reads a long from storage.

Specified by:
readLong in interface StoreReader
Returns:
The loaded value.

readDouble

public double readDouble()
Reads a double from storage.

Specified by:
readDouble in interface StoreReader
Returns:
The loaded value.

readString

public java.lang.String readString()
Reads a String from storage.

Specified by:
readString in interface StoreReader
Returns:
The loaded value.