Class Overview
Readable source channel used to read from a pipe.
Summary
Public Methods |
final
int
|
validOps()
Indicates that this channel only supports reading.
|
[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()
Called before the object's memory is reclaimed by the VM.
|
final
Class<? extends Object>
|
getClass()
Returns the unique instance of Class that 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()
Causes the calling thread to wait until another thread calls the notify() or notifyAll() method 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.
|
|
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.InterruptibleChannel
abstract
void
|
close()
Closes the channel.
|
|
From interface java.nio.channels.ReadableByteChannel
abstract
int
|
read(ByteBuffer buffer)
Reads bytes from the channel into the given buffer.
|
|
From interface java.nio.channels.ScatteringByteChannel
abstract
long
|
read(ByteBuffer[] buffers, int offset, int length)
Attempts to read all remaining() bytes from length byte
buffers, in order, starting at buffers[offset] .
|
abstract
long
|
read(ByteBuffer[] buffers)
Reads bytes from this channel into the specified array of buffers.
|
|
Protected Constructors
protected
Pipe.SourceChannel
(SelectorProvider provider)
Constructs a new SourceChannel
.
Parameters
provider
| the provider of the channel.
|
Public Methods
public
final
int
validOps
()
Indicates that this channel only supports reading.
Returns
- a static value of OP_READ.