Package org.apache.guacamole.io
Interface GuacamoleWriter
- 
- All Known Implementing Classes:
- FilteredGuacamoleWriter,- WriterGuacamoleWriter
 
 public interface GuacamoleWriterProvides abstract and raw character write access to a stream of Guacamole instructions.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwrite(char[] chunk)Writes the entire given array of characters to the Guacamole instruction stream.voidwrite(char[] chunk, int off, int len)Writes a portion of the given array of characters to the Guacamole instruction stream.voidwriteInstruction(GuacamoleInstruction instruction)Writes the given fully parsed instruction to the Guacamole instruction stream.
 
- 
- 
- 
Method Detail- 
writevoid write(char[] chunk, int off, int len) throws GuacamoleExceptionWrites a portion of the given array of characters to the Guacamole instruction stream. The portion must contain only complete Guacamole instructions.- Parameters:
- chunk- An array of characters containing Guacamole instructions.
- off- The start offset of the portion of the array to write.
- len- The length of the portion of the array to write.
- Throws:
- GuacamoleException- If an error occurred while writing the portion of the array specified.
 
 - 
writevoid write(char[] chunk) throws GuacamoleExceptionWrites the entire given array of characters to the Guacamole instruction stream. The array must consist only of complete Guacamole instructions.- Parameters:
- chunk- An array of characters consisting only of complete Guacamole instructions.
- Throws:
- GuacamoleException- If an error occurred while writing the the specified array.
 
 - 
writeInstructionvoid writeInstruction(GuacamoleInstruction instruction) throws GuacamoleException Writes the given fully parsed instruction to the Guacamole instruction stream.- Parameters:
- instruction- The Guacamole instruction to write.
- Throws:
- GuacamoleException- If an error occurred while writing the instruction.
 
 
- 
 
-