Module org.apache.jena.rdfpatch
Class OutputManagedFile
java.lang.Object
org.apache.jena.rdfpatch.filelog.rotate.OutputManagedFile
- All Implemented Interfaces:
ManagedOutput
File-based
ManagedOutput
with various FilePolicy
for file rotation.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe most recent output file name, only valid during an output section, else null.Current output stream, or null if there hasn't been one yetThe latest output file name, or null if there hasn't been one yetoutput()
Get an OutputStream; use with try-resources or similar usage pattern.roller()
Get rotation enginevoid
rotate()
Force a rotation of the output file.
-
Constructor Details
-
OutputManagedFile
-
-
Method Details
-
roller
Get rotation engine- Specified by:
roller
in interfaceManagedOutput
-
currentOutput
Description copied from interface:ManagedOutput
Current output stream, or null if there hasn't been one yet- Specified by:
currentOutput
in interfaceManagedOutput
-
currentFilename
Description copied from interface:ManagedOutput
The most recent output file name, only valid during an output section, else null.- Specified by:
currentFilename
in interfaceManagedOutput
-
latestFilename
Description copied from interface:ManagedOutput
The latest output file name, or null if there hasn't been one yet- Specified by:
latestFilename
in interfaceManagedOutput
-
output
Description copied from interface:ManagedOutput
Get an OutputStream; use with try-resources or similar usage pattern. Closing the OutputStream returns it to the manager.- Specified by:
output
in interfaceManagedOutput
-
rotate
public void rotate()Force a rotation of the output file.- Specified by:
rotate
in interfaceManagedOutput
-