Class Nano.Buffer

java.lang.Object
org.jline.builtins.Nano.Buffer
Enclosing class:
Nano

protected class Nano.Buffer extends Object
  • Constructor Details

    • Buffer

      protected Buffer(String file)
  • Method Details

    • setDirty

      public void setDirty(boolean dirty)
    • getFile

      public String getFile()
    • getLines

      public List<String> getLines()
    • getFirstLineToDisplay

      public int getFirstLineToDisplay()
    • getFirstColumnToDisplay

      public int getFirstColumnToDisplay()
    • getOffsetInLineToDisplay

      public int getOffsetInLineToDisplay()
    • getLine

      public int getLine()
    • getCharset

      public Charset getCharset()
    • getFormat

      public Nano.WriteFormat getFormat()
    • isDirty

      public boolean isDirty()
    • getSyntaxHighlighter

      public SyntaxHighlighter getSyntaxHighlighter()
    • getOffsetInLine

      public int getOffsetInLine()
    • getColumn

      public int getColumn()
    • open

      public void open() throws IOException
      Throws:
      IOException
    • open

      public void open(InputStream is) throws IOException
      Throws:
      IOException
    • read

      public void read(InputStream fis) throws IOException
      Throws:
      IOException
    • insert

      public void insert(String insert)
    • isBreakable

      public boolean isBreakable(char ch)
    • moveToChar

      public void moveToChar(int pos)
    • moveToChar

      public void moveToChar(int pos, Nano.CursorMovement move)
    • delete

      public void delete(int count)
    • backspace

      public boolean backspace(int count)
    • moveLeft

      public boolean moveLeft(int chars)
    • moveRight

      public boolean moveRight(int chars)
    • width

      public int width()
    • moveRight

      public boolean moveRight(int chars, boolean fromBeginning)
    • moveDown

      public void moveDown(int lines)
    • moveUp

      public void moveUp(int lines)
    • moveDisplayDown

      public void moveDisplayDown(int lines)
    • moveDisplayUp

      public void moveDisplayUp(int lines)
    • moveTo

      public void moveTo(int x, int y)
    • gotoLine

      public void gotoLine(int x, int y)
    • getDisplayedCursor

      public int getDisplayedCursor()
    • prevWord

      public void prevWord()
    • nextWord

      public void nextWord()
    • beginningOfLine

      public void beginningOfLine()
    • endOfLine

      public void endOfLine()
    • prevPage

      public void prevPage()
    • nextPage

      public void nextPage()
    • scrollUp

      public void scrollUp(int lines)
    • scrollDown

      public void scrollDown(int lines)
    • firstLine

      public void firstLine()
    • lastLine

      public void lastLine()
    • highlightStart

      protected int[] highlightStart()
    • highlightEnd

      protected int[] highlightEnd()
    • matching

      public void matching()