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
Constructors -
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 enginevoidrotate()Force a rotation of the output file.
-
Constructor Details
-
OutputManagedFile
-
-
Method Details
-
roller
Get rotation engine- Specified by:
rollerin interfaceManagedOutput
-
currentOutput
Description copied from interface:ManagedOutputCurrent output stream, or null if there hasn't been one yet- Specified by:
currentOutputin interfaceManagedOutput
-
currentFilename
Description copied from interface:ManagedOutputThe most recent output file name, only valid during an output section, else null.- Specified by:
currentFilenamein interfaceManagedOutput
-
latestFilename
Description copied from interface:ManagedOutputThe latest output file name, or null if there hasn't been one yet- Specified by:
latestFilenamein interfaceManagedOutput
-
output
Description copied from interface:ManagedOutputGet an OutputStream; use with try-resources or similar usage pattern. Closing the OutputStream returns it to the manager.- Specified by:
outputin interfaceManagedOutput
-
rotate
public void rotate()Force a rotation of the output file.- Specified by:
rotatein interfaceManagedOutput
-