| Constructor and Description |
|---|
PipeSink() |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Pushes all buffered bytes to their final destination and releases the
resources held by this sink.
|
void |
flush()
Pushes all buffered bytes to their final destination.
|
Timeout |
timeout()
Returns the timeout for this sink.
|
void |
write(Buffer source,
long byteCount)
Removes
byteCount bytes from source and appends them to this. |
final Timeout timeout
public void write(Buffer source, long byteCount) throws java.io.IOException
SinkbyteCount bytes from source and appends them to this.public void flush()
throws java.io.IOException
Sinkpublic void close()
throws java.io.IOException
Sink