Package org.wildfly.httpclient.common
Class NoFlushByteOutput
- java.lang.Object
-
- org.wildfly.httpclient.common.NoFlushByteOutput
-
- All Implemented Interfaces:
java.io.Closeable,java.io.Flushable,java.lang.AutoCloseable,org.jboss.marshalling.ByteOutput
public class NoFlushByteOutput extends java.lang.Object implements org.jboss.marshalling.ByteOutputAn output stream that ignores flushes. The marshsaller will flush when it is done, which results in two frames on the wire. By ignoring the flush only one frame is sent for each message.- Author:
- Stuart Douglas
-
-
Constructor Summary
Constructors Constructor Description NoFlushByteOutput(org.jboss.marshalling.ByteOutput delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidflush()voidwrite(byte[] b)voidwrite(byte[] b, int off, int len)voidwrite(int b)
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException- Specified by:
writein interfaceorg.jboss.marshalling.ByteOutput- Throws:
java.io.IOException
-
write
public void write(byte[] b) throws java.io.IOException- Specified by:
writein interfaceorg.jboss.marshalling.ByteOutput- Throws:
java.io.IOException
-
write
public void write(byte[] b, int off, int len) throws java.io.IOException- Specified by:
writein interfaceorg.jboss.marshalling.ByteOutput- Throws:
java.io.IOException
-
close
public void close() throws java.io.IOException- Specified by:
closein interfacejava.lang.AutoCloseable- Specified by:
closein interfacejava.io.Closeable- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException- Specified by:
flushin interfacejava.io.Flushable- Throws:
java.io.IOException
-
-