final class Http2Stream.FramingSink
extends java.lang.Object
implements okio.Sink
Modifier and Type | Field and Description |
---|---|
(package private) boolean |
closed |
private static long |
EMIT_BUFFER_SIZE |
(package private) boolean |
finished
True if either side has cleanly shut down this stream.
|
private okio.Buffer |
sendBuffer
Buffer of outgoing data.
|
private Headers |
trailers
Trailers to send at the end of the stream.
|
Constructor and Description |
---|
FramingSink() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
private void |
emitFrame(boolean outFinishedOnLastFrame)
Emit a single data frame to the connection.
|
void |
flush() |
okio.Timeout |
timeout() |
void |
write(okio.Buffer source,
long byteCount) |
private static final long EMIT_BUFFER_SIZE
private final okio.Buffer sendBuffer
private Headers trailers
boolean closed
boolean finished
public void write(okio.Buffer source, long byteCount) throws java.io.IOException
write
in interface okio.Sink
java.io.IOException
private void emitFrame(boolean outFinishedOnLastFrame) throws java.io.IOException
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in interface okio.Sink
java.io.IOException
public okio.Timeout timeout()
timeout
in interface okio.Sink
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface okio.Sink
java.io.IOException