|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.limewire.nio.channel.AbstractChannelInterestWriter
public abstract class AbstractChannelInterestWriter
A basic channel writer that just forwards all information to the next channel in line.
| Constructor Summary | |
|---|---|
AbstractChannelInterestWriter()
|
|
| Method Summary | |
|---|---|
void |
close()
Closes the underlying channel. |
InterestWritableByteChannel |
getWriteChannel()
Returns the write target, AKA sink. |
void |
handleIOException(IOException x)
Unused, Unsupported |
boolean |
handleWrite()
Notification that a write can be performed. |
boolean |
hasBufferedOutput()
Returns true, if the channel has buffered data. |
void |
interestWrite(WriteObserver observer,
boolean status)
Marks the given observer as interested (or not interested, if status is false) in knowing when a write can be performed on this channel. |
boolean |
isOpen()
Determines if the underlying channel is open. |
void |
setWriteChannel(InterestWritableByteChannel channel)
Set the write target, AKA sink. |
void |
shutdown()
Releases any resources used by this component. |
int |
write(ByteBuffer src)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractChannelInterestWriter()
| Method Detail |
|---|
public InterestWritableByteChannel getWriteChannel()
getWriteChannel in interface ChannelWriterpublic void setWriteChannel(InterestWritableByteChannel channel)
setWriteChannel in interface ChannelWriter
public void interestWrite(WriteObserver observer,
boolean status)
interestWrite in interface InterestWritableByteChannel
public void close()
throws IOException
close in interface Closeableclose in interface ChannelIOExceptionpublic boolean isOpen()
isOpen in interface Channelpublic void shutdown()
Shutdownable
shutdown must never throw any exceptions.
shutdown in interface Shutdownablepublic void handleIOException(IOException x)
handleIOException in interface IOErrorObserverpublic boolean hasBufferedOutput()
InterestWritableByteChannelfalse the buffered data is lost.
hasBufferedOutput in interface InterestWritableByteChannel
public boolean handleWrite()
throws IOException
WriteObserver
handleWrite in interface WriteObservertrue there is still data to be written, otherwise
false.
IOException
public int write(ByteBuffer src)
throws IOException
write in interface WritableByteChannelIOException
|
LimeWire Consolidated API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||