org.crsh.util
Class LineFeedWriter

java.lang.Object
  extended by org.crsh.util.LineFeedWriter
All Implemented Interfaces:
Appendable, ShellWriter

public class LineFeedWriter
extends Object
implements ShellWriter

Version:
$Revision$
Author:
Julien Viet

Field Summary
private  String lineFeed
          .
private static int NOT_PADDED
          .
private  Appendable out
          .
private static int PADDED
          .
private static int PADDING
          .
private  int status
          .
 
Constructor Summary
LineFeedWriter(Appendable out)
           
LineFeedWriter(Appendable out, 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)
           
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

out

private final Appendable out
.


lineFeed

private final String lineFeed
.


status

private int status
.

Constructor Detail

LineFeedWriter

public LineFeedWriter(Appendable out)

LineFeedWriter

public LineFeedWriter(Appendable out,
                      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
Specified by:
append in interface ShellWriter
Throws:
IOException

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
Specified by:
append in interface ShellWriter
Throws:
IOException

append

public ShellWriter append(ShellWriterContext ctx,
                          CharSequence csq,
                          int start,
                          int end)
                   throws IOException
Specified by:
append in interface ShellWriter
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


Copyright © 2012 eXo Platform SAS. All Rights Reserved.