Class FrameOutputStream
java.lang.Object
java.io.OutputStream
org.apache.hc.core5.http2.impl.io.FrameOutputStream
- All Implemented Interfaces:
Closeable
,Flushable
,AutoCloseable
- Since:
- 5.0
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
flush()
private void
flushCache
(boolean endStream) void
write
(byte[] b) void
write
(byte[] src, int off, int len) void
write
(int b) protected abstract void
write
(ByteBuffer src, boolean endStream, OutputStream outputStream)
-
Field Details
-
outputStream
-
cache
private final byte[] cache -
cachePosition
private int cachePosition
-
-
Constructor Details
-
FrameOutputStream
-
-
Method Details
-
write
protected abstract void write(ByteBuffer src, boolean endStream, OutputStream outputStream) throws IOException - Throws:
IOException
-
flushCache
- Throws:
IOException
-
write
- Specified by:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
write
- Overrides:
write
in classOutputStream
- Throws:
IOException
-
flush
- Specified by:
flush
in interfaceFlushable
- Overrides:
flush
in classOutputStream
- Throws:
IOException
-
close
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Overrides:
close
in classOutputStream
- Throws:
IOException
-