jline
Class TerminalFactory

java.lang.Object
  extended by jline.TerminalFactory

public class TerminalFactory
extends Object

Creates terminal instances.

Since:
2.0
Author:
Jason Dillon

Nested Class Summary
static class TerminalFactory.Flavor
           
static class TerminalFactory.Type
           
 
Field Summary
static String AUTO
           
static String FALSE
           
static String JLINE_TERMINAL
           
static String NONE
           
static String OFF
           
static String UNIX
           
static String WIN
           
static String WINDOWS
           
 
Constructor Summary
TerminalFactory()
           
 
Method Summary
static void configure(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, 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 String JLINE_TERMINAL
See Also:
Constant Field Values

AUTO

public static final String AUTO
See Also:
Constant Field Values

UNIX

public static final String UNIX
See Also:
Constant Field Values

WIN

public static final String WIN
See Also:
Constant Field Values

WINDOWS

public static final String WINDOWS
See Also:
Constant Field Values

NONE

public static final String NONE
See Also:
Constant Field Values

OFF

public static final String OFF
See Also:
Constant Field Values

FALSE

public static final 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(String type)

configure

public static void configure(TerminalFactory.Type type)

get

public static Terminal get()

getFlavor

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

registerFlavor

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


Copyright © 2008-2011 Sonatype. All Rights Reserved.