org.csc.phynixx.common.io
Class LogRecordWriter

java.lang.Object
  extended by org.csc.phynixx.common.io.LogRecordWriter

public class LogRecordWriter
extends Object

Created by christoph on 12.01.14.


Constructor Summary
LogRecordWriter()
           
 
Method Summary
 void close()
           
 byte[] toByteArray()
           
 LogRecordWriter writeBoolean(boolean v)
           
 LogRecordWriter writeByte(byte b)
           
 LogRecordWriter writeChar(int v)
           
 LogRecordWriter writeDouble(double v)
           
 LogRecordWriter writeFloat(float v)
           
 LogRecordWriter writeInt(int v)
           
 LogRecordWriter writeLong(long v)
           
 LogRecordWriter writeObject(Object object)
          write the object's class name to check the consistency if the restroe fails.
 LogRecordWriter writeShort(int v)
           
 LogRecordWriter writeUTF(String str)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LogRecordWriter

public LogRecordWriter()
Method Detail

toByteArray

public byte[] toByteArray()
                   throws IOException
Throws:
IOException

writeChar

public LogRecordWriter writeChar(int v)
                          throws IOException
Throws:
IOException

writeShort

public LogRecordWriter writeShort(int v)
                           throws IOException
Throws:
IOException

writeInt

public LogRecordWriter writeInt(int v)
                         throws IOException
Throws:
IOException

writeLong

public LogRecordWriter writeLong(long v)
                          throws IOException
Throws:
IOException

writeFloat

public LogRecordWriter writeFloat(float v)
                           throws IOException
Throws:
IOException

writeDouble

public LogRecordWriter writeDouble(double v)
                            throws IOException
Throws:
IOException

writeUTF

public LogRecordWriter writeUTF(String str)
                         throws IOException
Throws:
IOException

writeByte

public LogRecordWriter writeByte(byte b)
                          throws IOException
Throws:
IOException

writeBoolean

public LogRecordWriter writeBoolean(boolean v)
                             throws IOException
Throws:
IOException

writeObject

public LogRecordWriter writeObject(Object object)
                            throws IOException
write the object's class name to check the consistency if the restroe fails. A null object is accepted

Parameters:
object - serializable object. it has to fullfill the requirements of ObjectOutputStream.writeObject(Object) .
Returns:
returns the fluent API
Throws:
IOException

close

public void close()


Copyright © 2015. All rights reserved.