org.crsh.shell.io
Class ShellWriter

java.lang.Object
  extended by org.crsh.shell.io.ShellWriter
All Implemented Interfaces:
Appendable, ShellAppendable

public class ShellWriter
extends Object
implements ShellAppendable

Version:
$Revision$
Author:
Julien Viet

Field Summary
private  String lineFeed
          .
private static int NOT_PADDED
          .
private static int PADDED
          .
private static int PADDING
          .
private  CharReader reader
          .
private  int status
          .
 
Constructor Summary
ShellWriter(CharReader reader)
           
ShellWriter(CharReader reader, String lineFeed)
           
 
Method Summary
 Appendable append(char c)
           
 Appendable append(CharSequence csq)
           
 Appendable append(CharSequence csq, int start, int end)
           
 ShellWriter append(ShellWriterContext ctx, char c)
           
 ShellWriter append(ShellWriterContext ctx, CharSequence csq)
           
 ShellWriter append(ShellWriterContext ctx, CharSequence csq, int start, int end)
           
 ShellWriter append(Style d)
           
 boolean isEmpty()
           
private  void realAppend(ShellWriterContext ctx, CharSequence csq, int off, int end)
           
private  void writeLF(ShellWriterContext ctx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NOT_PADDED

private static final int NOT_PADDED
.

See Also:
Constant Field Values

PADDING

private static final int PADDING
.

See Also:
Constant Field Values

PADDED

private static final int PADDED
.

See Also:
Constant Field Values

reader

private final CharReader reader
.


lineFeed

private final String lineFeed
.


status

private int status
.

Constructor Detail

ShellWriter

public ShellWriter(CharReader reader)

ShellWriter

public ShellWriter(CharReader reader,
                   String lineFeed)
Method Detail

append

public Appendable append(char c)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public ShellWriter append(ShellWriterContext ctx,
                          char c)
                   throws IOException
Throws:
IOException

append

public ShellWriter append(Style d)
Specified by:
append in interface ShellAppendable

append

public Appendable append(CharSequence csq,
                         int start,
                         int end)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public Appendable append(CharSequence csq)
                  throws IOException
Specified by:
append in interface Appendable
Throws:
IOException

append

public ShellWriter append(ShellWriterContext ctx,
                          CharSequence csq)
                   throws IOException
Throws:
IOException

append

public ShellWriter append(ShellWriterContext ctx,
                          CharSequence csq,
                          int start,
                          int end)
                   throws IOException
Throws:
IOException

realAppend

private void realAppend(ShellWriterContext ctx,
                        CharSequence csq,
                        int off,
                        int end)
                 throws IOException
Throws:
IOException

writeLF

private void writeLF(ShellWriterContext ctx)
              throws IOException
Throws:
IOException

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface ShellAppendable


Copyright © 2012 eXo Platform SAS. All Rights Reserved.