|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.guacamole.io.ReaderGuacamoleReader
public class ReaderGuacamoleReader
A GuacamoleReader which wraps a standard Java Reader, using that Reader as the Guacamole instruction stream.
| Constructor Summary | |
|---|---|
ReaderGuacamoleReader(Reader input)
Creates a new ReaderGuacamoleReader which will use the given Reader as the Guacamole instruction stream. |
|
| Method Summary | |
|---|---|
boolean |
available()
Returns whether instruction data is available for reading. |
char[] |
read()
Reads at least one complete Guacamole instruction, returning a buffer containing one or more complete Guacamole instructions and no incomplete Guacamole instructions. |
GuacamoleInstruction |
readInstruction()
Reads exactly one complete Guacamole instruction and returns the fully parsed instruction. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReaderGuacamoleReader(Reader input)
input - The Reader to use as the Guacamole instruction stream.| Method Detail |
|---|
public boolean available()
throws GuacamoleException
GuacamoleReader
available in interface GuacamoleReaderGuacamoleException - If an error occurs while checking for
available data.
public char[] read()
throws GuacamoleException
GuacamoleReader
read in interface GuacamoleReaderGuacamoleException - If an error occurs while reading from the
stream.
public GuacamoleInstruction readInstruction()
throws GuacamoleException
GuacamoleReader
readInstruction in interface GuacamoleReaderGuacamoleException - If an error occurs while reading from the
stream, or if the instruction cannot be
parsed.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||