Class SerializedGenerator<T>

Object
SingleFileTypeGenerator<T,T>
OneStageGenerator<T>
SerializedGenerator<T>
Type Parameters:
T - iteration-type
All Implemented Interfaces:
Generator<T>, TransformingGenerator<T,T>, ElementWriter<T>
Direct Known Subclasses:
ObjectOutputStreamGenerator, XStreamGenerator

public abstract class SerializedGenerator<T> extends OneStageGenerator<T>
A generator that writes binary serialized files to the file-system.

These files are in the Java serialization format.

  • Constructor Details

    • SerializedGenerator

      public SerializedGenerator()
  • Method Details

    • selectFileExtension

      public String selectFileExtension(OutputWriteSettings settings, Optional<Logger> logger)
      Description copied from class: SingleFileTypeGenerator
      Selects the file/extension to be used for outputting the file.
      Specified by:
      selectFileExtension in class SingleFileTypeGenerator<T,T>
      Parameters:
      settings - settings for outputting.
      logger - logger for warning for information messages when outputting.
      Returns:
      the file extension (without leading period) to be used for outputting.
    • extensionSuffix

      protected abstract String extensionSuffix(OutputWriteSettings outputWriteSettings)
      Appended to the standard "serialized" extension, to form the complete extension.
      Parameters:
      outputWriteSettings - the associated OutputWriteSettings.
      Returns:
      the suffix for the extension including any leading period, when appropriate. This may be the empty string if no suffix exists.