xxl.io
Class StringBufferConverter

java.lang.Object
  |
  +--xxl.io.Converter
        |
        +--xxl.io.StringBufferConverter

public class StringBufferConverter
extends Converter


Field Summary
static StringBufferConverter PROTOTYPE
           
 
Constructor Summary
StringBufferConverter()
           
 
Method Summary
 java.lang.Object read(java.io.DataInput dataInput, java.lang.Object object)
          Reads a StringBuffer from the given DataInput.
 int write(java.io.DataOutput dataOutput, java.lang.Object object)
          Writes a StringBuffer to the given DataOutput.
 
Methods inherited from class xxl.io.Converter
sizeOf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOTYPE

public static final StringBufferConverter PROTOTYPE
Constructor Detail

StringBufferConverter

public StringBufferConverter()
Method Detail

read

public java.lang.Object read(java.io.DataInput dataInput,
                             java.lang.Object object)
                      throws java.io.IOException
Reads a StringBuffer from the given DataInput.
Parameters:
object - this attribute is ignored in this subclass
Returns:
the StringBuffer that was 'filled' with data from the given DataInput is returned.
Overrides:
read in class Converter

write

public int write(java.io.DataOutput dataOutput,
                 java.lang.Object object)
          throws java.io.IOException
Writes a StringBuffer to the given DataOutput.
Returns:
returns the number of bytes that were written
Overrides:
write in class Converter