public class GuacamoleParser extends Object implements Iterator<GuacamoleInstruction>
| Modifier and Type | Field and Description | 
|---|---|
| static int | INSTRUCTION_MAX_DIGITSThe maximum number of digits to allow per length prefix. | 
| static int | INSTRUCTION_MAX_ELEMENTSThe maximum number of elements per instruction, including the opcode. | 
| static int | INSTRUCTION_MAX_LENGTHThe maximum number of characters per instruction. | 
| Constructor and Description | 
|---|
| GuacamoleParser() | 
| Modifier and Type | Method and Description | 
|---|---|
| int | append(char[] chunk)Appends data from the given buffer to the current instruction. | 
| int | append(char[] chunk,
      int offset,
      int length)Appends data from the given buffer to the current instruction. | 
| boolean | hasNext() | 
| GuacamoleInstruction | next() | 
| void | remove() | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemainingpublic static final int INSTRUCTION_MAX_LENGTH
public static final int INSTRUCTION_MAX_DIGITS
public static final int INSTRUCTION_MAX_ELEMENTS
public int append(char[] chunk,
                  int offset,
                  int length)
           throws GuacamoleException
chunk - The buffer containing the data to append.offset - The offset within the buffer where the data begins.length - The length of the data to append.GuacamoleException - If an error occurs while parsing the new data.public int append(char[] chunk)
           throws GuacamoleException
chunk - The data to append.GuacamoleException - If an error occurs while parsing the new data.public boolean hasNext()
hasNext in interface Iterator<GuacamoleInstruction>public GuacamoleInstruction next()
next in interface Iterator<GuacamoleInstruction>public void remove()
remove in interface Iterator<GuacamoleInstruction>Copyright © 2017. All rights reserved.