Package com.rabbitmq.client.impl.nio
Class SslEngineByteBufferOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- com.rabbitmq.client.impl.nio.SslEngineByteBufferOutputStream
-
- All Implemented Interfaces:
java.io.Closeable
,java.io.Flushable
,java.lang.AutoCloseable
public class SslEngineByteBufferOutputStream extends java.io.OutputStream
Bridge between the byte buffer and stream worlds.
-
-
Constructor Summary
Constructors Constructor Description SslEngineByteBufferOutputStream(javax.net.ssl.SSLEngine sslEngine, java.nio.ByteBuffer plainOut, java.nio.ByteBuffer cypherOut, java.nio.channels.WritableByteChannel channel)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
doFlush()
void
flush()
void
write(int b)
-
-
-
Method Detail
-
write
public void write(int b) throws java.io.IOException
- Specified by:
write
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
flush
public void flush() throws java.io.IOException
- Specified by:
flush
in interfacejava.io.Flushable
- Overrides:
flush
in classjava.io.OutputStream
- Throws:
java.io.IOException
-
doFlush
private void doFlush() throws java.io.IOException
- Throws:
java.io.IOException
-
-