mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-11-15 10:20:47 +00:00
Rename short report methods:
- singleLineReport() -> shortReportLine() - singleLineReportTo() -> shortReportLineTo() - singleLineReportData() -> shortReportMap()
This commit is contained in:
1 parent
3b75b28168
commit
df6e31697d
16 files changed
+71
-89
No files matched your search
@@ -662,15 +662,15 @@ public class ArchiveUtils {
|
||||
}
|
||||
|
||||
/**
|
||||
* Utility method to get a String singleLineReport from Reporter
|
||||
* @param rep Reporter to get singleLineReport from
|
||||
* Utility method to get a String shortReportLine from Reporter
|
||||
* @param rep Reporter to get shortReportLine from
|
||||
* @return String of report
|
||||
*/
|
||||
public static String singleLineReport(Reporter rep) {
|
||||
public static String shortReportLine(Reporter rep) {
|
||||
StringWriter sw = new StringWriter();
|
||||
PrintWriter pw = new PrintWriter(sw);
|
||||
try {
|
||||
rep.singleLineReportTo(pw);
|
||||
rep.shortReportLineTo(pw);
|
||||
} catch (IOException e) {
|
||||
// not really possible
|
||||
e.printStackTrace();
|
||||
|
||||
@@ -37,13 +37,13 @@ public interface Reporter {
|
||||
*
|
||||
* @param writer to receive report
|
||||
*/
|
||||
public void singleLineReportTo(PrintWriter pw) throws IOException;
|
||||
public void shortReportLineTo(PrintWriter pw) throws IOException;
|
||||
|
||||
|
||||
/**
|
||||
* @return Same data that's in the single line report, as key-value pairs
|
||||
*/
|
||||
public Map<String,Object> singleLineReportData();
|
||||
public Map<String,Object> shortReportMap();
|
||||
|
||||
|
||||
/**
|
||||
@@ -51,5 +51,5 @@ public interface Reporter {
|
||||
*
|
||||
* @return String single-line summary legend
|
||||
*/
|
||||
public String singleLineLegend();
|
||||
public String shortReportLegend();
|
||||
}
|
||||
Reference in new issue
Block a user