public class ByteBufferOutputStream extends OutputStream
Constructor and Description |
---|
ByteBufferOutputStream(WritableByteChannel channel,
ByteBuffer buffer) |
Modifier and Type | Method and Description |
---|---|
static void |
drain(WritableByteChannel channel,
ByteBuffer buffer) |
void |
flush() |
void |
write(int b) |
close, write, write
public ByteBufferOutputStream(WritableByteChannel channel, ByteBuffer buffer)
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public static void drain(WritableByteChannel channel, ByteBuffer buffer) throws IOException
IOException
Copyright © 2022 VMware, Inc. or its affiliates.. All rights reserved.