Package org.dspace.curate
Class FileReporter
java.lang.Object
org.dspace.curate.FileReporter
- All Implemented Interfaces:
Appendable,AutoCloseable,Reporter
Save a curation report to a unique file in the reports directory.
Reports are named by the date and time of day, for example:
"curation-20180916T113903045.report".
- Author:
- mhwood
-
Constructor Summary
ConstructorsConstructorDescriptionOpen a writer to a file in a directory named by the configuration propertyreport.dir, or in[DSpace]/reportsif not configured. -
Method Summary
Modifier and TypeMethodDescriptionappend(char c) append(CharSequence cs) append(CharSequence cs, int i, int i1) voidclose()
-
Constructor Details
-
FileReporter
Open a writer to a file in a directory named by the configuration propertyreport.dir, or in[DSpace]/reportsif not configured.- Throws:
IOException- if there is a problem with the file path.
-
-
Method Details
-
append
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
append
- Specified by:
appendin interfaceAppendable- Throws:
IOException
-
close
- Specified by:
closein interfaceAutoCloseable- Throws:
Exception
-