com.nhncorp.neptune.common.io
Interface NWritable

All Known Subinterfaces:
NWritableComparable
All Known Implementing Classes:
AbstractKey, AsyncTaskStatus, Cell, Cell.Key, Cell.Value, CellFilter, ChangeLog, ChangeLogStatus, ColumnValue, MapFileColumnValue, MergeScanner.RowArray, NObjectWritable, NText, NUTF8, ReadyMinorCompaction, Row, Row.Key, RowColumnValues, RowFilter, ScanCell, TableSchema, TabletInfo, TabletReport, TabletServerInfo, TabletServerStatus, TestChangeLog, TxId, UnitTestDetail

public interface NWritable

A simple, efficient, serialization protocol, based on DataInput and DataOutput.

Implementations typically implement a static read(DataInput) method which constructs a new instance, calls readFields(DataInput), and returns the instance.

Author:
Doug Cutting

Method Summary
 void readFields(java.io.DataInput in)
          Reads the fields of this object from in.
 void write(java.io.DataOutput out)
          Writes the fields of this object to out.
 

Method Detail

write

void write(java.io.DataOutput out)
           throws java.io.IOException
Writes the fields of this object to out.

Throws:
java.io.IOException

readFields

void readFields(java.io.DataInput in)
                throws java.io.IOException
Reads the fields of this object from in. For efficiency, implementations should attempt to re-use storage in the existing object where possible.

Throws:
java.io.IOException