org.crsh.shell.ui
Class UIWriterContext

java.lang.Object
  extended by org.crsh.shell.ui.UIWriterContext
All Implemented Interfaces:
ShellWriterContext

 class UIWriterContext
extends Object
implements ShellWriterContext

Version:
$Revision$
Author:
Julien Viet

Field Summary
private static EnumMap<Pad,String> charMap
           
(package private)  boolean needLF
          .
private static EnumMap<Pad,Pad> nextMap
           
(package private)  ArrayList<Pad> stack
          .
 
Constructor Summary
UIWriterContext()
           
 
Method Summary
 void lineFeed()
           
 void pad(Appendable appendable)
           
 void text(CharSequence csq, int off, int end)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stack

final ArrayList<Pad> stack
.


needLF

boolean needLF
.


charMap

private static EnumMap<Pad,String> charMap

nextMap

private static EnumMap<Pad,Pad> nextMap
Constructor Detail

UIWriterContext

UIWriterContext()
Method Detail

pad

public void pad(Appendable appendable)
         throws IOException
Specified by:
pad in interface ShellWriterContext
Throws:
IOException

text

public void text(CharSequence csq,
                 int off,
                 int end)
Specified by:
text in interface ShellWriterContext

lineFeed

public void lineFeed()
Specified by:
lineFeed in interface ShellWriterContext


Copyright © 2012 eXo Platform SAS. All Rights Reserved.