jline
Class TerminalFactory

java.lang.Object
  extended by jline.TerminalFactory

public class TerminalFactory
extends java.lang.Object

Creates terminal instances.

Since:
2.0
Author:
Jason Dillon

Nested Class Summary
static class TerminalFactory.Flavor
           
static class TerminalFactory.Type
           
 
Field Summary
static java.lang.String AUTO
           
static java.lang.String FALSE
           
static java.lang.String JLINE_TERMINAL
           
static java.lang.String NONE
           
static java.lang.String OFF
           
static java.lang.String UNIX
           
static java.lang.String WIN
           
static java.lang.String WINDOWS
           
 
Constructor Summary
TerminalFactory()
           
 
Method Summary
static void configure(java.lang.String type)
           
static void configure(TerminalFactory.Type type)
           
static Terminal create()
           
static Terminal get()
           
static Terminal getFlavor(TerminalFactory.Flavor flavor)
           
static void registerFlavor(TerminalFactory.Flavor flavor, java.lang.Class<? extends Terminal> type)
           
static void reset()
           
static void resetIf(Terminal t)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JLINE_TERMINAL

public static final java.lang.String JLINE_TERMINAL
See Also:
Constant Field Values

AUTO

public static final java.lang.String AUTO
See Also:
Constant Field Values

UNIX

public static final java.lang.String UNIX
See Also:
Constant Field Values

WIN

public static final java.lang.String WIN
See Also:
Constant Field Values

WINDOWS

public static final java.lang.String WINDOWS
See Also:
Constant Field Values

NONE

public static final java.lang.String NONE
See Also:
Constant Field Values

OFF

public static final java.lang.String OFF
See Also:
Constant Field Values

FALSE

public static final java.lang.String FALSE
See Also:
Constant Field Values
Constructor Detail

TerminalFactory

public TerminalFactory()
Method Detail

create

public static Terminal create()

reset

public static void reset()

resetIf

public static void resetIf(Terminal t)

configure

public static void configure(java.lang.String type)

configure

public static void configure(TerminalFactory.Type type)

get

public static Terminal get()

getFlavor

public static Terminal getFlavor(TerminalFactory.Flavor flavor)
                          throws java.lang.Exception
Throws:
java.lang.Exception

registerFlavor

public static void registerFlavor(TerminalFactory.Flavor flavor,
                                  java.lang.Class<? extends Terminal> type)