public class GenericProtobufObjectOutput extends Object implements ObjectOutput
| Constructor and Description |
|---|
GenericProtobufObjectOutput(OutputStream out) |
| Modifier and Type | Method and Description |
|---|---|
void |
flushBuffer() |
void |
writeBool(boolean v) |
void |
writeByte(byte v) |
void |
writeBytes(byte[] b) |
void |
writeBytes(byte[] b,
int off,
int len) |
void |
writeDouble(double v) |
void |
writeFloat(float v) |
void |
writeInt(int v) |
void |
writeLong(long v) |
void |
writeObject(Object obj) |
void |
writeShort(short v) |
void |
writeUTF(String v) |
public GenericProtobufObjectOutput(OutputStream out)
public void writeBool(boolean v)
throws IOException
writeBool in interface DataOutputIOExceptionpublic void writeByte(byte v)
throws IOException
writeByte in interface DataOutputIOExceptionpublic void writeShort(short v)
throws IOException
writeShort in interface DataOutputIOExceptionpublic void writeInt(int v)
throws IOException
writeInt in interface DataOutputIOExceptionpublic void writeLong(long v)
throws IOException
writeLong in interface DataOutputIOExceptionpublic void writeFloat(float v)
throws IOException
writeFloat in interface DataOutputIOExceptionpublic void writeDouble(double v)
throws IOException
writeDouble in interface DataOutputIOExceptionpublic void writeUTF(String v) throws IOException
writeUTF in interface DataOutputIOExceptionpublic void writeBytes(byte[] b)
writeBytes in interface DataOutputpublic void writeBytes(byte[] b,
int off,
int len)
writeBytes in interface DataOutputpublic void writeObject(Object obj) throws IOException
writeObject in interface ObjectOutputIOExceptionpublic void flushBuffer()
flushBuffer in interface DataOutputCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.