Package org.eolang.jeo
Class Caching
java.lang.Object
org.eolang.jeo.Caching
- All Implemented Interfaces:
Transformation
Cached transformation.
This class implements a caching mechanism for transformations. It checks if a transformation has already been performed by comparing file modification times, and skips redundant transformations to improve performance.
- Since:
- 0.6.0
-
Method Summary
-
Method Details
-
source
Description copied from interface:Transformation
The path to the file to be transformed.- Specified by:
source
in interfaceTransformation
- Returns:
- Path to the source file
-
target
Description copied from interface:Transformation
The path to the transformed file.- Specified by:
target
in interfaceTransformation
- Returns:
- Path to the target file after transformation
-
transform
public byte[] transform()Description copied from interface:Transformation
Transform the file.- Specified by:
transform
in interfaceTransformation
- Returns:
- Transformed file content as byte array
-