org.springframework.boot.ansi
Class AnsiOutput

java.lang.Object
  extended by org.springframework.boot.ansi.AnsiOutput

public abstract class AnsiOutput
extends Object

Generates ANSI encoded output, automatically attempting to detect if the terminal supports ANSI.

Author:
Phillip Webb

Nested Class Summary
static class AnsiOutput.Enabled
           
 
Constructor Summary
AnsiOutput()
           
 
Method Summary
static void setEnabled(AnsiOutput.Enabled enabled)
          Sets if ANSI output is enabled.
static String toString(Object... elements)
          Create a new ANSI string from the specified elements.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnsiOutput

public AnsiOutput()
Method Detail

setEnabled

public static void setEnabled(AnsiOutput.Enabled enabled)
Sets if ANSI output is enabled.

Parameters:
enabled - if ANSI is enabled, disabled or detected

toString

public static String toString(Object... elements)
Create a new ANSI string from the specified elements. Any AnsiElements will be encoded as required.

Parameters:
elements - the elements to encode
Returns:
a string of the encoded elements


Copyright © 2013. All Rights Reserved.