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
A generator that writes binary serialized files to the file-system.
These files are in the Java serialization format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
extensionSuffix
(OutputWriteSettings outputWriteSettings) Appended to the standard "serialized" extension, to form the complete extension.selectFileExtension
(OutputWriteSettings settings, Optional<Logger> logger) Selects the file/extension to be used for outputting the file.Methods inherited from class org.anchoranalysis.io.generator.OneStageGenerator
transform
Methods inherited from class org.anchoranalysis.io.generator.SingleFileTypeGenerator
write, writeToFile, writeWithIndex
-
Constructor Details
-
SerializedGenerator
public SerializedGenerator()
-
-
Method Details
-
selectFileExtension
Description copied from class:SingleFileTypeGenerator
Selects the file/extension to be used for outputting the file.- Specified by:
selectFileExtension
in classSingleFileTypeGenerator<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
Appended to the standard "serialized" extension, to form the complete extension.- Parameters:
outputWriteSettings
- the associatedOutputWriteSettings
.- Returns:
- the suffix for the extension including any leading period, when appropriate. This may be the empty string if no suffix exists.
-