public abstract class AbstractSystemReportFormatter extends Object implements SystemReportFormatter
Modifier and Type | Field and Description |
---|---|
protected OutputStream |
m_outputStream |
Constructor and Description |
---|
AbstractSystemReportFormatter() |
Modifier and Type | Method and Description |
---|---|
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 UIs 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 . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
canStdout, getContentType, getExtension
protected OutputStream m_outputStream
protected String getOutput()
public void setOutput(String output)
SystemReportFormatter
setOutput
in interface SystemReportFormatter
protected OutputStream getOutputStream()
public void setOutputStream(OutputStream stream)
SystemReportFormatter
setOutputStream
in interface SystemReportFormatter
public boolean needsOutputStream()
SystemReportFormatter
needsOutputStream
in interface SystemReportFormatter
public String getName()
SystemReportFormatter
getName
in interface SystemReportFormatter
public String getDescription()
SystemReportFormatter
getDescription
in interface SystemReportFormatter
public void write(SystemReportPlugin plugin)
SystemReportFormatter
SystemReportPlugin
.write
in interface SystemReportFormatter
plugin
- the system report plugin which contains the data to writepublic void begin()
SystemReportFormatter
begin
in interface SystemReportFormatter
public void end()
SystemReportFormatter
end
in interface SystemReportFormatter
public final 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)
Copyright © 2016. All rights reserved.