Forge - Parent 1.4.2-SNAPSHOT

org.jboss.forge.shell.integration
Enum NoopBufferManager

java.lang.Object
  extended by java.lang.Enum<NoopBufferManager>
      extended by org.jboss.forge.shell.integration.NoopBufferManager
All Implemented Interfaces:
Serializable, Comparable<NoopBufferManager>, BufferManager

public enum NoopBufferManager
extends Enum<NoopBufferManager>
implements BufferManager

Author:
George Gastaldi

Enum Constant Summary
INSTANCE
           
 
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.
static NoopBufferManager valueOf(String name)
          Returns the enum constant of this type with the specified name.
static NoopBufferManager[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 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)
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSTANCE

public static final NoopBufferManager INSTANCE
Method Detail

values

public static NoopBufferManager[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NoopBufferManager c : NoopBufferManager.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NoopBufferManager valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

bufferOnlyMode

public void bufferOnlyMode()
Description copied from interface: BufferManager
Set the buffer into buffering-only mode. No data will be flushed to a lower-level buffer.

Specified by:
bufferOnlyMode in interface BufferManager

directWriteMode

public void directWriteMode()
Description copied from interface: BufferManager
Direct-write mode. Data will be flushed to the lower-level buffer immediately upon write.

Specified by:
directWriteMode in interface BufferManager

flushBuffer

public void flushBuffer()
Description copied from interface: BufferManager
Flush data to the lower-level buffer immediately.

Specified by:
flushBuffer in interface BufferManager

write

public void write(int b)
Specified by:
write in interface BufferManager

write

public void write(byte b)
Description copied from interface: BufferManager
Write a single byte to the buffer.

Specified by:
write in interface BufferManager

write

public void write(byte[] b)
Description copied from interface: BufferManager
Write a byte array to the buffer.

Specified by:
write in interface BufferManager

write

public void write(byte[] b,
                  int offset,
                  int length)
Description copied from interface: BufferManager
Write a byte array to the buffer with offset

Specified by:
write in interface BufferManager

write

public void write(String s)
Specified by:
write in interface BufferManager

directWrite

public void directWrite(String s)
Specified by:
directWrite in interface BufferManager

setBufferPosition

public void setBufferPosition(int row,
                              int col)
Description copied from interface: BufferManager
Set buffer position.

Specified by:
setBufferPosition in interface BufferManager

getHeight

public int getHeight()
Description copied from interface: BufferManager
Get height in lines

Specified by:
getHeight in interface BufferManager
Returns:

getWidth

public int getWidth()
Description copied from interface: BufferManager
Get width in lines

Specified by:
getWidth in interface BufferManager
Returns:

Forge - Parent 1.4.2-SNAPSHOT

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