|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object nachos.userprog.SynchConsole
public class SynchConsole
Provides a simple, synchronized interface to the machine's console. The interface can also be accessed through OpenFile objects.
Constructor Summary | |
---|---|
SynchConsole(SerialConsole console)
Allocate a new SynchConsole. |
Method Summary | |
---|---|
OpenFile |
openForReading()
Return an OpenFile that can be used to read this as a file. |
OpenFile |
openForWriting()
Return an OpenFile that can be used to write this as a file. |
int |
readByte(boolean block)
Return the next unsigned byte received (in the range 0 through 255). |
void |
writeByte(int value)
Send a byte. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SynchConsole(SerialConsole console)
console
- the underlying serial console to use.Method Detail |
---|
public int readByte(boolean block)
block
- true if readByte() should wait for a
byte if none is available.
public OpenFile openForReading()
public void writeByte(int value)
value
- the byte to be sent (the upper 24 bits are ignored).public OpenFile openForWriting()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |