public final class ConduitWritableByteChannel
extends java.lang.Object
implements java.nio.channels.WritableByteChannel
Constructor and Description |
---|
ConduitWritableByteChannel(StreamSinkConduit conduit)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
isOpen() |
int |
write(java.nio.ByteBuffer src) |
public ConduitWritableByteChannel(StreamSinkConduit conduit)
conduit
- the conduit to delegate topublic int write(java.nio.ByteBuffer src) throws java.io.IOException
write
in interface java.nio.channels.WritableByteChannel
java.io.IOException
public boolean isOpen()
isOpen
in interface java.nio.channels.Channel
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in interface java.nio.channels.Channel
java.io.IOException
Copyright © 2016 JBoss, a division of Red Hat, Inc.