Class CompatibilityRepositoryExporter

java.lang.Object
com.ibm.websphere.logging.hpel.writer.CompatibilityRepositoryExporter
All Implemented Interfaces:
RepositoryExporter
Direct Known Subclasses:
CompatibilityZipRepositoryExporter

public class CompatibilityRepositoryExporter extends Object implements RepositoryExporter
Implementation of the RepositoryExporter interface exporting log records into a text file in Basic or Advanced WebSphere format. The method storeHeader must be called before any records can be stored. Each record is stored with the storeRecord function. Failure to follow the order will result in runtime exceptions.
  • Constructor Details

    • CompatibilityRepositoryExporter

      public CompatibilityRepositoryExporter(File outputFile, HpelFormatter formatter) throws IOException
      Creates an instance for storing records in a file in a Basic or Advanced text format.
      Parameters:
      outputFile - output file
      formatter - formatter to use when converting LogRecords into text
      Throws:
      IOException - if an I/O error has occurred
    • CompatibilityRepositoryExporter

      public CompatibilityRepositoryExporter(PrintStream out, HpelFormatter formatter)
      Creates an instance for writing records into a stream in a Basic or Advanced text format.
      Parameters:
      out - output stream.
      formatter - formatter to use when converting LogRecords into text
      See Also:
  • Method Details