org.openstreetmap.osmosis.core.store
Class DataOutputStoreWriter

java.lang.Object
  extended by org.openstreetmap.osmosis.core.store.DataOutputStoreWriter
All Implemented Interfaces:
StoreWriter

public class DataOutputStoreWriter
extends java.lang.Object
implements StoreWriter

Allows persisted output to be written to a DataOutput implementation.

Author:
Brett Henderson

Constructor Summary
DataOutputStoreWriter(java.io.DataOutput output)
          Creates a new instance.
 
Method Summary
 void writeBoolean(boolean value)
          Writes a boolean to storage.
 void writeByte(byte value)
          Writes a byte to storage.
 void writeCharacter(char value)
          Writes a character to storage.
 void writeDouble(double value)
          Writes a double to storage.
 void writeInteger(int value)
          Writes an integer to storage.
 void writeLong(long value)
          Writes a long to storage.
 void writeString(java.lang.String value)
          Writes a String to storage.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataOutputStoreWriter

public DataOutputStoreWriter(java.io.DataOutput output)
Creates a new instance.

Parameters:
output - The destination to write the data to.
Method Detail

writeBoolean

public void writeBoolean(boolean value)
Writes a boolean to storage.

Specified by:
writeBoolean in interface StoreWriter
Parameters:
value - The value to be written.

writeByte

public void writeByte(byte value)
Writes a byte to storage.

Specified by:
writeByte in interface StoreWriter
Parameters:
value - The value to be written.

writeCharacter

public void writeCharacter(char value)
Writes a character to storage.

Specified by:
writeCharacter in interface StoreWriter
Parameters:
value - The value to be written.

writeInteger

public void writeInteger(int value)
Writes an integer to storage.

Specified by:
writeInteger in interface StoreWriter
Parameters:
value - The value to be written.

writeLong

public void writeLong(long value)
Writes a long to storage.

Specified by:
writeLong in interface StoreWriter
Parameters:
value - The value to be written.

writeDouble

public void writeDouble(double value)
Writes a double to storage.

Specified by:
writeDouble in interface StoreWriter
Parameters:
value - The value to be written.

writeString

public void writeString(java.lang.String value)
Writes a String to storage.

Specified by:
writeString in interface StoreWriter
Parameters:
value - The value to be written.