public class FilteredGuacamoleWriter extends Object implements GuacamoleWriter
| Constructor and Description |
|---|
FilteredGuacamoleWriter(GuacamoleWriter writer,
GuacamoleFilter filter)
Wraps the given GuacamoleWriter, applying the given filter to all written
instructions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
write(char[] chunk)
Writes the entire given array of characters to the Guacamole instruction
stream.
|
void |
write(char[] chunk,
int offset,
int length)
Writes a portion of the given array of characters to the Guacamole
instruction stream.
|
void |
writeInstruction(GuacamoleInstruction instruction)
Writes the given fully parsed instruction to the Guacamole instruction
stream.
|
public FilteredGuacamoleWriter(GuacamoleWriter writer, GuacamoleFilter filter)
writer - The GuacamoleWriter to wrap.filter - The filter which dictates which instructions are written,
and how.public void write(char[] chunk,
int offset,
int length)
throws GuacamoleException
GuacamoleWriterwrite in interface GuacamoleWriterchunk - An array of characters containing Guacamole instructions.offset - The start offset of the portion of the array to write.length - The length of the portion of the array to write.GuacamoleException - If an error occurred while writing the
portion of the array specified.public void write(char[] chunk)
throws GuacamoleException
GuacamoleWriterwrite in interface GuacamoleWriterchunk - An array of characters consisting only of complete
Guacamole instructions.GuacamoleException - If an error occurred while writing the
the specified array.public void writeInstruction(GuacamoleInstruction instruction) throws GuacamoleException
GuacamoleWriterwriteInstruction in interface GuacamoleWriterinstruction - The Guacamole instruction to write.GuacamoleException - If an error occurred while writing the
instruction.Copyright © 2017. All rights reserved.