Package org.apache.guacamole.io
Class WriterGuacamoleWriter
- java.lang.Object
- 
- org.apache.guacamole.io.WriterGuacamoleWriter
 
- 
- All Implemented Interfaces:
- GuacamoleWriter
 
 public class WriterGuacamoleWriter extends Object implements GuacamoleWriter A GuacamoleWriter which wraps a standard Java Writer, using that Writer as the Guacamole instruction stream.
- 
- 
Constructor SummaryConstructors Constructor Description WriterGuacamoleWriter(Writer output)Creates a new WriterGuacamoleWriter which will use the given Writer as the Guacamole instruction stream.
 - 
Method SummaryAll Methods Instance Methods Concrete 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.
 
- 
- 
- 
Constructor Detail- 
WriterGuacamoleWriterpublic WriterGuacamoleWriter(Writer output) Creates a new WriterGuacamoleWriter which will use the given Writer as the Guacamole instruction stream.- Parameters:
- output- The Writer to use as the Guacamole instruction stream.
 
 
- 
 - 
Method Detail- 
writepublic void write(char[] chunk, int off, int len) throws GuacamoleExceptionDescription copied from interface:GuacamoleWriterWrites a portion of the given array of characters to the Guacamole instruction stream. The portion must contain only complete Guacamole instructions.- Specified by:
- writein interface- GuacamoleWriter
- 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.
 
 - 
writepublic void write(char[] chunk) throws GuacamoleExceptionDescription copied from interface:GuacamoleWriterWrites the entire given array of characters to the Guacamole instruction stream. The array must consist only of complete Guacamole instructions.- Specified by:
- writein interface- GuacamoleWriter
- Parameters:
- chunk- An array of characters consisting only of complete Guacamole instructions.
- Throws:
- GuacamoleException- If an error occurred while writing the the specified array.
 
 - 
writeInstructionpublic void writeInstruction(GuacamoleInstruction instruction) throws GuacamoleException Description copied from interface:GuacamoleWriterWrites the given fully parsed instruction to the Guacamole instruction stream.- Specified by:
- writeInstructionin interface- GuacamoleWriter
- Parameters:
- instruction- The Guacamole instruction to write.
- Throws:
- GuacamoleException- If an error occurred while writing the instruction.
 
 
- 
 
-