|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.opennms.systemreport.formatters.AbstractSystemReportFormatter
public abstract class AbstractSystemReportFormatter
| Constructor Summary | |
|---|---|
AbstractSystemReportFormatter()
|
|
| Method Summary | |
|---|---|
void |
begin()
Indicates that report output will begin. |
int |
compareTo(SystemReportFormatter o)
|
void |
end()
Indicates that report output will end. |
String |
getDescription()
A short description of the format. |
String |
getName()
A short name for this format for use by UI's when presenting an option of which formatter to choose. |
protected String |
getOutput()
|
protected OutputStream |
getOutputStream()
|
protected String |
getResourceText(org.springframework.core.io.Resource r)
|
protected boolean |
hasDisplayable(SystemReportPlugin plugin)
|
protected boolean |
isDisplayable(org.springframework.core.io.Resource r)
|
protected boolean |
isFile(org.springframework.core.io.Resource r)
|
boolean |
needsOutputStream()
Whether or not this formatter needs to be given an output stream. |
void |
setOutput(String output)
The output string as passed on the command-line. |
void |
setOutputStream(OutputStream stream)
The output stream to use when writing data. |
void |
write(SystemReportPlugin plugin)
Write the data from the specified SystemReportPlugin. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.opennms.systemreport.SystemReportFormatter |
|---|
canStdout, getContentType, getExtension |
| Constructor Detail |
|---|
public AbstractSystemReportFormatter()
| Method Detail |
|---|
protected String getOutput()
public void setOutput(String output)
SystemReportFormatter
setOutput in interface SystemReportFormatterprotected OutputStream getOutputStream()
public void setOutputStream(OutputStream stream)
SystemReportFormatter
setOutputStream in interface SystemReportFormatterpublic boolean needsOutputStream()
SystemReportFormatter
needsOutputStream in interface SystemReportFormatterpublic String getName()
SystemReportFormatter
getName in interface SystemReportFormatterpublic String getDescription()
SystemReportFormatter
getDescription in interface SystemReportFormatterpublic void write(SystemReportPlugin plugin)
SystemReportFormatterSystemReportPlugin.
write in interface SystemReportFormatterplugin - the system report plugin which contains the data to writepublic void begin()
SystemReportFormatter
begin in interface SystemReportFormatterpublic void end()
SystemReportFormatter
end in interface SystemReportFormatterpublic int compareTo(SystemReportFormatter o)
compareTo in interface Comparable<SystemReportFormatter>protected boolean isDisplayable(org.springframework.core.io.Resource r)
protected boolean isFile(org.springframework.core.io.Resource r)
protected String getResourceText(org.springframework.core.io.Resource r)
protected boolean hasDisplayable(SystemReportPlugin plugin)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||