code: public void handleInputStream(final InputStream is) throws IOException
          {
          LOG.trace("Handling input stream.");
          final OutputStream os = new FileOutputStream(this.m_file);
          try
              {
              final long bytesWritten = org.littleshoot.util.IoUtils.copy(is, os, 
                  this.m_writeListener);
              LOG.trace("Wrote "+bytesWritten+" to file: "+this.m_file);
              }
          finally
              {
              IOUtils.closeQuietly(is);
              IOUtils.closeQuietly(os);
              }
          }
docs: /* (non-Javadoc)
  @see com.bamboo.util.InputStreamHandler#handleInputStream(
  java.io.InputStream)