Package org.infinispan.commons.marshall
Class DelegatingObjectOutput
- java.lang.Object
-
- java.io.OutputStream
-
- org.infinispan.commons.marshall.DelegatingObjectOutput
-
- All Implemented Interfaces:
Closeable
,DataOutput
,Flushable
,ObjectOutput
,AutoCloseable
public class DelegatingObjectOutput extends OutputStream implements ObjectOutput
Class that extendsOutputStream
and implementsObjectOutput
.All the methods delegates to a
ObjectOutput
implementation.- Since:
- 8.2
- Author:
- Pedro Ruivo
-
-
Field Summary
Fields Modifier and Type Field Description protected ObjectOutput
objectOutput
-
Constructor Summary
Constructors Constructor Description DelegatingObjectOutput(ObjectOutput objectOutput)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
void
flush()
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
void
writeBoolean(boolean v)
void
writeByte(int v)
void
writeBytes(String s)
void
writeChar(int v)
void
writeChars(String s)
void
writeDouble(double v)
void
writeFloat(float v)
void
writeInt(int v)
void
writeLong(long v)
void
writeObject(Object obj)
void
writeShort(int v)
void
writeUTF(String s)
-
-
-
Field Detail
-
objectOutput
protected final ObjectOutput objectOutput
-
-
Constructor Detail
-
DelegatingObjectOutput
public DelegatingObjectOutput(ObjectOutput objectOutput)
-
-
Method Detail
-
writeObject
public void writeObject(Object obj) throws IOException
- Throws:
IOException
-
write
public void write(int b) throws IOException
- Throws:
IOException
-
write
public void write(byte[] b) throws IOException
- Throws:
IOException
-
write
public void write(byte[] b, int off, int len) throws IOException
- Throws:
IOException
-
flush
public void flush() throws IOException
- Throws:
IOException
-
close
public void close() throws IOException
- Throws:
IOException
-
writeBoolean
public void writeBoolean(boolean v) throws IOException
- Throws:
IOException
-
writeByte
public void writeByte(int v) throws IOException
- Throws:
IOException
-
writeShort
public void writeShort(int v) throws IOException
- Throws:
IOException
-
writeChar
public void writeChar(int v) throws IOException
- Throws:
IOException
-
writeInt
public void writeInt(int v) throws IOException
- Throws:
IOException
-
writeLong
public void writeLong(long v) throws IOException
- Throws:
IOException
-
writeFloat
public void writeFloat(float v) throws IOException
- Throws:
IOException
-
writeDouble
public void writeDouble(double v) throws IOException
- Throws:
IOException
-
writeBytes
public void writeBytes(String s) throws IOException
- Throws:
IOException
-
writeChars
public void writeChars(String s) throws IOException
- Throws:
IOException
-
writeUTF
public void writeUTF(String s) throws IOException
- Throws:
IOException
-
-