jline
Class Buffer

Package class diagram package Buffer
java.lang.Object
  extended by jline.Buffer

public class Buffer
extends Object

This class is a helper to commands in the console.

This class is based on a jline's test class written by Ryan. Control Version

Version:
1..0. 2010-05-13
Author:
Andres Gomez Casanova (AngocA)

Constructor Summary
Buffer(String string)
          Constructor with a given string.
 
Method Summary
 byte[] getBytes()
          Retrieves the output stream as an array of bytes.
 void op(short operation)
          Adds a operation to the stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Buffer

public Buffer(String string)
Constructor with a given string.

Parameters:
string - String that represents what the user wrote.
Method Detail

getBytes

public byte[] getBytes()
Retrieves the output stream as an array of bytes.

Returns:
Array of bytes.

op

public void op(short operation)
Adds a operation to the stream.

Parameters:
operation - Operation to add.


Andres Gomez Casanova (AngocA) 2009-2010 Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License.