public abstract class AbstractFormatter extends Object implements Formatter
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractFormatter(String suffix,
String key) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFormatKey()
Returns the name of the formatter that will be used to identify it.
|
protected PrintWriter |
getPrintWriter(File file) |
URI |
getResultURI(String objectName) |
protected abstract void |
write(FinalResult result,
PrintWriter ps) |
void |
write(FinalResult result,
URI outputURI) |
public URI getResultURI(String objectName)
getResultURI in interface Formatterpublic String getFormatKey()
FormattergetFormatKey in interface Formatterpublic void write(FinalResult result, URI outputURI) throws Exception
protected PrintWriter getPrintWriter(File file) throws Exception
Exceptionprotected abstract void write(FinalResult result, PrintWriter ps) throws Exception
ExceptionCopyright © 2014 Quattor. All Rights Reserved.