INRIA & FluxMedia

fr.fluxmedia.tmcontrib.serializer
Class RTFSerializer.DebugOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.FilterOutputStream
          extended by fr.fluxmedia.tmcontrib.serializer.RTFSerializer.DebugOutputStream
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable
Enclosing class:
RTFSerializer

 class RTFSerializer.DebugOutputStream
extends java.io.FilterOutputStream

An utility class to control the outputs of the jFor converter. Outputs are only visible when debug > 1

Author:
triolet

Field Summary
(package private)  int debug
           
 
Fields inherited from class java.io.FilterOutputStream
out
 
Constructor Summary
RTFSerializer.DebugOutputStream(java.io.OutputStream out, int d)
          Constructor for the DebugOutputStream object
 
Method Summary
 void write(byte[] b)
          Description of the Method
 void write(byte[] b, int off, int len)
          Description of the Method
 void write(int b)
          Description of the Method
 
Methods inherited from class java.io.FilterOutputStream
close, flush
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

int debug
Constructor Detail

RTFSerializer.DebugOutputStream

public RTFSerializer.DebugOutputStream(java.io.OutputStream out,
                                       int d)
Constructor for the DebugOutputStream object

Parameters:
out - Description of the Parameter
d - Description of the Parameter
Method Detail

write

public void write(byte[] b)
           throws java.io.IOException
Description of the Method

Overrides:
write in class java.io.FilterOutputStream
Parameters:
b - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

write

public void write(byte[] b,
                  int off,
                  int len)
           throws java.io.IOException
Description of the Method

Overrides:
write in class java.io.FilterOutputStream
Parameters:
b - Description of the Parameter
off - Description of the Parameter
len - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

write

public void write(int b)
           throws java.io.IOException
Description of the Method

Overrides:
write in class java.io.FilterOutputStream
Parameters:
b - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

INRIA & FluxMedia

..no bottom yet...