Package com.adobe.epubcheck.util
Class WriterReportImpl
- java.lang.Object
-
- com.adobe.epubcheck.api.MasterReport
-
- com.adobe.epubcheck.util.WriterReportImpl
-
- All Implemented Interfaces:
LocalizableReport,Report
public class WriterReportImpl extends MasterReport
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static booleanDEBUG(package private) java.io.PrintWriterout(package private) booleanquiet-
Fields inherited from class com.adobe.epubcheck.api.MasterReport
allReportedMessageIds
-
-
Constructor Summary
Constructors Constructor Description WriterReportImpl(java.io.PrintWriter out)WriterReportImpl(java.io.PrintWriter out, java.lang.String info)WriterReportImpl(java.io.PrintWriter out, java.lang.String info, boolean quiet)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) voiderror(java.lang.String resource, int line, int column, java.lang.String message)(package private) voidfatalError(java.lang.String resource, int line, int column, java.lang.String message)(package private) java.lang.StringfixMessage(java.lang.String message)intgenerate()Called to create a report after the checks have been madevoidhint(java.lang.String resource, int line, int column, java.lang.String message)voidinfo(java.lang.String resource, FeatureEnum feature, java.lang.String value)Called when when a feature is found in epub.voidinitialize()Called when a report if first createdvoidmessage(Message message, EPUBLocation location, java.lang.Object... args)Called when a violation of the standard is found in epub.(package private) voidwarning(java.lang.String resource, int line, int column, java.lang.String message)-
Methods inherited from class com.adobe.epubcheck.api.MasterReport
close, getCustomMessageFile, getDictionary, getEpubFileName, getErrorCount, getFatalErrorCount, getInfoCount, getLocale, getMessages, getReportingLevel, getUsageCount, getWarningCount, message, setCustomMessageFile, setEpubFileName, setLocale, setOverrideFile, setReportingLevel
-
-
-
-
Method Detail
-
fixMessage
java.lang.String fixMessage(java.lang.String message)
-
message
public void message(Message message, EPUBLocation location, java.lang.Object... args)
Description copied from interface:ReportCalled when a violation of the standard is found in epub.- Parameters:
message- The message being reportedlocation- location information for the messageargs- Arguments referenced by the format string for the message.
-
error
void error(java.lang.String resource, int line, int column, java.lang.String message)
-
fatalError
void fatalError(java.lang.String resource, int line, int column, java.lang.String message)
-
warning
void warning(java.lang.String resource, int line, int column, java.lang.String message)
-
info
public void info(java.lang.String resource, FeatureEnum feature, java.lang.String value)Description copied from interface:ReportCalled when when a feature is found in epub.- Parameters:
resource- name of the resource in the epub zip container that has this feature or null if the feature is on the container level.feature- a keyword to know what kind of feature has been foundvalue- value found
-
initialize
public void initialize()
Description copied from interface:ReportCalled when a report if first created
-
hint
public void hint(java.lang.String resource, int line, int column, java.lang.String message)
-
generate
public int generate()
Description copied from interface:ReportCalled to create a report after the checks have been made
-
-