Forge - Parent 1.1.2-SNAPSHOT

org.jboss.forge.shell.integration
Interface BufferManager


public interface BufferManager

A BufferManager is responsible for managing a shell buffer in Forge.

Author:
Mike Brock

Method Summary
 void bufferOnlyMode()
          Set the buffer into buffering-only mode.
 void directWrite(String s)
           
 void directWriteMode()
          Direct-write mode.
 void flushBuffer()
          Flush data to the lower-level buffer immediately.
 int getHeight()
          Get height in lines
 int getWidth()
          Get width in lines
 void setBufferPosition(int row, int col)
          Set buffer position.
 void write(byte b)
          Write a single byte to the buffer.
 void write(byte[] b)
          Write a byte array to the buffer.
 void write(byte[] b, int offset, int length)
          Write a byte array to the buffer with offset
 void write(int b)
           
 void write(String s)
           
 

Method Detail

bufferOnlyMode

void bufferOnlyMode()
Set the buffer into buffering-only mode. No data will be flushed to a lower-level buffer.


directWriteMode

void directWriteMode()
Direct-write mode. Data will be flushed to the lower-level buffer immediately upon write.


flushBuffer

void flushBuffer()
Flush data to the lower-level buffer immediately.


write

void write(int b)

write

void write(byte b)
Write a single byte to the buffer.

Parameters:
b -

write

void write(byte[] b)
Write a byte array to the buffer.

Parameters:
b -

write

void write(byte[] b,
           int offset,
           int length)
Write a byte array to the buffer with offset

Parameters:
b -
offset -
length -

write

void write(String s)

directWrite

void directWrite(String s)

setBufferPosition

void setBufferPosition(int row,
                       int col)
Set buffer position.


getHeight

int getHeight()
Get height in lines

Returns:

getWidth

int getWidth()
Get width in lines

Returns:

Forge - Parent 1.1.2-SNAPSHOT

Copyright © 2012 JBoss by Red Hat. All Rights Reserved.