|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.squawk.vm.Channel
public abstract class Channel
The base class for the specialized channels for stream IO, graphic operations and event handling.
| Field Summary | |
|---|---|
protected ChannelIO |
cio
The owner of this channel. |
protected long |
result
The result of the last operation on this channel. |
| Constructor Summary | |
|---|---|
Channel(ChannelIO cio,
int channelID)
Constructor. |
|
| Method Summary | |
|---|---|
void |
clearResult()
Clear the result. |
abstract void |
close()
Closes this channel. |
int |
getChannelID()
Gets the identifier of this channel. |
int |
getEventNumber()
Gets the event number used for blocking this channel. |
long |
getResult()
Gets the result of the last successful operation on this channel. |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected long result
protected final ChannelIO cio
| Constructor Detail |
|---|
public Channel(ChannelIO cio,
int channelID)
cio - the owner of this channelchannelID - the identifier of this channel| Method Detail |
|---|
public final void clearResult()
public final long getResult()
public final int getChannelID()
public final int getEventNumber()
public abstract void close()
|
Sun SPOT API |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||