TPTP 4.6.0 Platform Project
Internal API Specification

org.eclipse.tptp.platform.report.chart.internal
Class ChartEncoderOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.eclipse.tptp.platform.report.chart.internal.ChartEncoderOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

Deprecated. As of TPTP 4.5.0, use the TPTP Business Intelligence and Reporting Tools (BIRT) reporting infrastructure (org.eclipse.tptp.platform.report.birt).

public class ChartEncoderOutputStream
extends java.io.OutputStream

Encode character of input stream (check E_xxx type) into character sequence "HH" where HH is the hexadecimal value of character (always two digits). This output stream can be used to encode zip stream before put it in HTML file (for example), as encoding reduce range 0..255 to 32..126 and take care of html special characters. This encoder must be the reverse encoder of ChartDecoderInputStream.

See Also:
DHtmlGraphicApplet

Field Summary
static int E_ALL
          Deprecated. all input characters are encoded
static int E_DEFAULT
          Deprecated. encode character in the range 0..31,127..255, '"', '&', '%', '0'..'9','a'..'
static int E_FORJAVASCRIPT
          Deprecated. encode as E_DEFAULT plus '{' '}' '\'' '\\'
 
Constructor Summary
ChartEncoderOutputStream(java.io.OutputStream os)
          Deprecated.  
ChartEncoderOutputStream(java.io.OutputStream os, int encode)
          Deprecated.  
 
Method Summary
 int getEncode()
          Deprecated.  
 void setEncode(int type)
          Deprecated. Change current encode type, use one of E_xxxx constants
 void write(int c)
          Deprecated.  
 
Methods inherited from class java.io.OutputStream
close, flush, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

E_DEFAULT

public static final int E_DEFAULT
Deprecated. 
encode character in the range 0..31,127..255, '"', '&', '%', '0'..'9','a'..'f' this set is enough to embed outputstream in a html attribute string

See Also:
Constant Field Values

E_FORJAVASCRIPT

public static final int E_FORJAVASCRIPT
Deprecated. 
encode as E_DEFAULT plus '{' '}' '\'' '\\'

See Also:
Constant Field Values

E_ALL

public static final int E_ALL
Deprecated. 
all input characters are encoded

See Also:
Constant Field Values
Constructor Detail

ChartEncoderOutputStream

public ChartEncoderOutputStream(java.io.OutputStream os)
Deprecated. 

ChartEncoderOutputStream

public ChartEncoderOutputStream(java.io.OutputStream os,
                                int encode)
Deprecated. 
Method Detail

getEncode

public int getEncode()
Deprecated. 
Returns:
encode type, one of E_xxx constants

setEncode

public void setEncode(int type)
Deprecated. 
Change current encode type, use one of E_xxxx constants


write

public void write(int c)
           throws java.io.IOException
Deprecated. 
Specified by:
write in class java.io.OutputStream
Throws:
java.io.IOException

TPTP 4.6.0 Platform Project
Internal API Specification