org.fusesource.jansi
Class HtmlAnsiOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by org.fusesource.jansi.AnsiOutputStream
              extended by org.fusesource.jansi.HtmlAnsiOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class HtmlAnsiOutputStream
extends AnsiOutputStream

Author:
Daniel Doubrovkine

Field Summary
 
Fields inherited from class org.fusesource.jansi.AnsiOutputStream
ATTRIBUTE_BLINK_FAST, ATTRIBUTE_BLINK_OFF, ATTRIBUTE_BLINK_SLOW, ATTRIBUTE_CONCEAL_OFF, ATTRIBUTE_CONCEAL_ON, ATTRIBUTE_INTENSITY_BOLD, ATTRIBUTE_INTENSITY_FAINT, ATTRIBUTE_INTENSITY_NORMAL, ATTRIBUTE_ITALIC, ATTRIBUTE_NEGATIVE_Off, ATTRIBUTE_NEGATIVE_ON, ATTRIBUTE_UNDERLINE, ATTRIBUTE_UNDERLINE_DOUBLE, ATTRIBUTE_UNDERLINE_OFF, BLACK, BLUE, CYAN, ERASE_LINE, ERASE_LINE_TO_BEGINING, ERASE_LINE_TO_END, ERASE_SCREEN, ERASE_SCREEN_TO_BEGINING, ERASE_SCREEN_TO_END, GREEN, MAGENTA, RED, REST_CODE, WHITE, YELLOW
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
HtmlAnsiOutputStream(java.io.OutputStream os)
           
 
Method Summary
 void close()
           
protected  void processAttributeRest()
           
protected  void processSetAttribute(int attribute)
           
protected  void processSetBackgroundColor(int color)
           
protected  void processSetForegroundColor(int color)
           
 void write(int data)
           
 void writeLine(byte[] buf, int offset, int len)
           
 
Methods inherited from class org.fusesource.jansi.AnsiOutputStream
processChangeIconName, processChangeIconNameAndWindowTitle, processChangeWindowTitle, processCursorDown, processCursorDownLine, processCursorLeft, processCursorRight, processCursorTo, processCursorToColumn, processCursorUp, processCursorUpLine, processDefaultBackgroundColor, processDefaultTextColor, processEraseLine, processEraseScreen, processRestoreCursorPosition, processSaveCursorPosition, processScrollDown, processScrollUp, processUnknownExtension, processUnknownOperatingSystemCommand
 
Methods inherited from class java.io.FilterOutputStream
flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlAnsiOutputStream

public HtmlAnsiOutputStream(java.io.OutputStream os)
Method Detail

close

public void close()
           throws java.io.IOException
Specified by:
close in interface java.io.Closeable
Overrides:
close in class AnsiOutputStream
Throws:
java.io.IOException

write

public void write(int data)
           throws java.io.IOException
Overrides:
write in class AnsiOutputStream
Throws:
java.io.IOException

writeLine

public void writeLine(byte[] buf,
                      int offset,
                      int len)
               throws java.io.IOException
Throws:
java.io.IOException

processSetAttribute

protected void processSetAttribute(int attribute)
                            throws java.io.IOException
Overrides:
processSetAttribute in class AnsiOutputStream
Throws:
java.io.IOException

processAttributeRest

protected void processAttributeRest()
                             throws java.io.IOException
Overrides:
processAttributeRest in class AnsiOutputStream
Throws:
java.io.IOException

processSetForegroundColor

protected void processSetForegroundColor(int color)
                                  throws java.io.IOException
Overrides:
processSetForegroundColor in class AnsiOutputStream
Throws:
java.io.IOException

processSetBackgroundColor

protected void processSetBackgroundColor(int color)
                                  throws java.io.IOException
Overrides:
processSetBackgroundColor in class AnsiOutputStream
Throws:
java.io.IOException


Copyright © 2009-2012 FuseSource, Corp.. All Rights Reserved.