程序包 jline

类 CursorBuffer

java.lang.Object
jline.CursorBuffer

public class CursorBuffer extends Object
A CursorBuffer is a holder for a StringBuffer that also contains the current cursor position.
作者:
Marc Prud'hommeaux
  • 字段详细资料

    • cursor

      public int cursor
  • 构造器详细资料

    • CursorBuffer

      public CursorBuffer()
  • 方法详细资料

    • length

      public int length()
    • current

      public char current()
    • clearBuffer

      public boolean clearBuffer()
    • write

      public void write(char c)
      Write the specific character into the buffer, setting the cursor position ahead one. The text may overwrite or insert based on the current setting of isOvertyping().
      参数:
      c - the character to insert
    • write

      public void write(String str)
      Insert the specified String into the buffer, setting the cursor to the end of the insertion point.
      参数:
      str - the String to insert. Must not be null.
    • toString

      public String toString()
      覆盖:
      toString 在类中 Object
    • isOvertyping

      public boolean isOvertyping()
    • setOvertyping

      public void setOvertyping(boolean b)
    • getBuffer

      public StringBuffer getBuffer()
    • setBuffer

      public void setBuffer(StringBuffer buffer)