code:     public  final void recycle() {
          try {
              // Must clear super's buffer.
              while (ready()) {
                  // InputStreamReader#skip(long) will allocate buffer to skip.
                  read();
              }
          } catch(IOException ioe){
          }
      }
  }
  
  
  /** Special output stream where close() is overriden, so super.close()
      is never called.
      
      This allows recycling. It can also be disabled, so callbacks will
      not be called if recycling the converter and if data was not flushed.
  */
  final class IntermediateInputStream extends InputStream {
      ByteChunk bc = null;
      
      public IntermediateInputStream() {
      }
      
      public  final void close() throws IOException {
          // shouldn't be called - we filter it out in writer
          throw new IOException("close() called - shouldn't happen ");
      }
      
      public  final  int read(byte cbuf[], int off, int len) throws IOException {
          return bc.substract(cbuf, off, len);
      }
      
      public  final int read() throws IOException {
          return bc.substract();
      }
  
      // -------------------- Internal methods --------------------
  
  
      void setByteChunk( ByteChunk mb ) {
          bc = mb;
      }
  
  