org.apache.geronimo.gshell.ansi
Class Buffer

java.lang.Object
  extended by org.apache.geronimo.gshell.ansi.Buffer

public class Buffer
extends Object

A stringbuffer-like thingy to help with using ANSI escape-codes.

Version:
$Rev: 574432 $ $Date: 2007-09-10 19:13:00 -0700 (Mon, 10 Sep 2007) $

Field Summary
 Boolean ansiEnabled
           
 boolean autoClear
           
 
Constructor Summary
Buffer()
           
Buffer(Boolean ansiEnabled, boolean autoClear)
           
 
Method Summary
 Buffer append(Object obj)
           
 Buffer append(String text)
           
 Buffer attrib(int code)
           
 Buffer attrib(String text, int code)
           
 Buffer attrib(String text, String codeName)
           
 void clear()
           
 boolean isAnsiEnabled()
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ansiEnabled

public Boolean ansiEnabled

autoClear

public boolean autoClear
Constructor Detail

Buffer

public Buffer(Boolean ansiEnabled,
              boolean autoClear)

Buffer

public Buffer()
Method Detail

toString

public String toString()
Overrides:
toString in class Object

isAnsiEnabled

public boolean isAnsiEnabled()

clear

public void clear()

size

public int size()

append

public Buffer append(String text)

append

public Buffer append(Object obj)

attrib

public Buffer attrib(int code)

attrib

public Buffer attrib(String text,
                     int code)

attrib

public Buffer attrib(String text,
                     String codeName)


Copyright © 2003-2007 Apache Software Foundation. All Rights Reserved.