class LogChannelFileWriter {

  public synchronized void flush() {
    try {
      StringBuffer buffer = this.buffer.getBuffer();
      logFileOutputStream.write( buffer.toString().getBytes() );
      logFileOutputStream.flush();

    } catch ( Exception e ) {
      exception = new HopException( "There was an error logging to file '" + logFile + "'", e );
    }
  }

  public  LogChannelFileWriter( String logChannelId, FileObject logFile, boolean appending, int pollingInterval );
  public  LogChannelFileWriter( String logChannelId, FileObject logFile, boolean appending );

}