public class LogRecordWriter extends Object
| Constructor and Description |
|---|
LogRecordWriter() |
| Modifier and Type | Method and Description |
|---|---|
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) |
public byte[] toByteArray()
throws IOException
IOExceptionpublic LogRecordWriter writeChar(int v) throws IOException
IOExceptionpublic LogRecordWriter writeShort(int v) throws IOException
IOExceptionpublic LogRecordWriter writeInt(int v) throws IOException
IOExceptionpublic LogRecordWriter writeLong(long v) throws IOException
IOExceptionpublic LogRecordWriter writeFloat(float v) throws IOException
IOExceptionpublic LogRecordWriter writeDouble(double v) throws IOException
IOExceptionpublic LogRecordWriter writeUTF(String str) throws IOException
IOExceptionpublic LogRecordWriter writeByte(byte b) throws IOException
IOExceptionpublic LogRecordWriter writeBoolean(boolean v) throws IOException
IOExceptionpublic LogRecordWriter writeObject(Object object) throws IOException
object - serializable object. it has to fullfill the requirements of ObjectOutputStream.writeObject(Object) .IOExceptionpublic void close()
Copyright © 2017. All rights reserved.