Class Overview
Writable sink channel used to write to a pipe.
Summary
Public Methods |
final
int
|
validOps()
Indicates that this channel only supports writing.
|
[Expand]
Inherited Methods |
From class java.nio.channels.spi.AbstractSelectableChannel
|
From class java.nio.channels.SelectableChannel
|
From class java.nio.channels.spi.AbstractInterruptibleChannel
final
void
|
begin()
Indicates the beginning of a code section that includes an I/O operation
that is potentially blocking.
|
final
void
|
close()
Closes an open channel.
|
final
void
|
end(boolean success)
Indicates the end of a code section that has been started with
begin() and that includes a potentially blocking I/O operation.
|
abstract
void
|
implCloseChannel()
Implements the channel closing behavior.
|
synchronized
final
boolean
|
isOpen()
Indicates whether this channel is open.
|
|
From class java.lang.Object
Object
|
clone()
Creates and returns a copy of this Object .
|
boolean
|
equals(Object o)
Compares this instance with the specified object and indicates if they
are equal.
|
void
|
finalize()
Is called before the object's memory is being reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class which represents this
object's class.
|
int
|
hashCode()
Returns an integer hash code for this object.
|
final
void
|
notify()
Causes a thread which is waiting on this object's monitor (by means of
calling one of the wait() methods) to be woken up.
|
final
void
|
notifyAll()
Causes all threads which are waiting on this object's monitor (by means
of calling one of the wait() methods) to be woken up.
|
String
|
toString()
Returns a string containing a concise, human-readable description of this
object.
|
final
void
|
wait(long millis, int nanos)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait(long millis)
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object or until the
specified timeout expires.
|
final
void
|
wait()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method of this object.
|
|
From interface java.io.Closeable
abstract
void
|
close()
Closes the object and release any system resources it holds.
|
|
From interface java.nio.channels.Channel
abstract
void
|
close()
Closes an open channel.
|
abstract
boolean
|
isOpen()
Returns whether this channel is open or not.
|
|
From interface java.nio.channels.GatheringByteChannel
abstract
long
|
write(ByteBuffer[] buffers, int offset, int length)
Attempts to write all remaining() bytes from length
byte buffers, in order, starting at buffers[offset] .
|
abstract
long
|
write(ByteBuffer[] buffers)
Writes bytes from all the given buffers to a channel.
|
|
From interface java.nio.channels.InterruptibleChannel
abstract
void
|
close()
Closes the channel.
|
|
From interface java.nio.channels.WritableByteChannel
abstract
int
|
write(ByteBuffer buffer)
Writes bytes from the given buffer to the channel.
|
|
Protected Constructors
protected
Pipe.SinkChannel
(SelectorProvider provider)
Constructs a new SinkChannel
.
Parameters
provider
| the provider of the channel.
|
Public Methods
public
final
int
validOps
()
Indicates that this channel only supports writing.
Returns
- a static value of OP_WRITE.