public class FilteredGuacamoleReader extends Object implements GuacamoleReader
| Constructor and Description |
|---|
FilteredGuacamoleReader(GuacamoleReader reader,
GuacamoleFilter filter)
Wraps the given GuacamoleReader, applying the given filter to all read
instructions.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public FilteredGuacamoleReader(GuacamoleReader reader, GuacamoleFilter filter)
reader - The GuacamoleReader to wrap.filter - The filter which dictates which instructions are read, and
how.public boolean available()
throws GuacamoleException
GuacamoleReaderavailable in interface GuacamoleReaderGuacamoleException - If an error occurs while checking for
available data.public char[] read()
throws GuacamoleException
GuacamoleReaderread in interface GuacamoleReaderGuacamoleException - If an error occurs while reading from the
stream.public GuacamoleInstruction readInstruction() throws GuacamoleException
GuacamoleReaderreadInstruction in interface GuacamoleReaderGuacamoleException - If an error occurs while reading from the
stream, or if the instruction cannot be
parsed.Copyright © 2018. All rights reserved.