public class ByteBufferByteChannel extends Object implements ByteChannel
ReadableByteChannel
that is backed by a ByteBuffer
.Constructor and Description |
---|
ByteBufferByteChannel(ByteBuffer byteBuffer) |
public ByteBufferByteChannel(ByteBuffer byteBuffer)
public int read(ByteBuffer dst) throws IOException
read
in interface ReadableByteChannel
IOException
public void close() throws IOException
close
in interface Closeable
close
in interface AutoCloseable
close
in interface Channel
IOException
public int write(ByteBuffer src) throws IOException
write
in interface WritableByteChannel
IOException
Copyright © 2014. All rights reserved.