org.apache.cocoon.formatter
Class AbstractFormatter
java.lang.Object
|
+--org.apache.cocoon.formatter.AbstractFormatter
- Direct Known Subclasses:
- FO2PDFFormatter, HTMLFormatter, TextFormatter, XHTMLFormatter, XMLFormatter
- public abstract class AbstractFormatter
- extends java.lang.Object
- implements Configurable, Formatter, Status
- Version:
- $Revision: 1.3 $ $Date: 2000/04/04 11:11:16 $
- Author:
- Stefano Mazzocchi
Method Summary |
java.lang.String |
getEncoding()
Returns the encoding used by this formatter for output. |
java.lang.String |
getMIMEType()
Returns the MIME type used by this formatter for output. |
java.lang.String |
getStatus()
Returns information about the status of the implementing class. |
void |
init(Configurations conf)
Initialize the class by passing its configurations. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
statusMessage
protected java.lang.String statusMessage
MIMEtype
protected java.lang.String MIMEtype
encoding
protected java.lang.String encoding
doctypePublic
protected java.lang.String doctypePublic
doctypeSystem
protected java.lang.String doctypeSystem
indent
protected java.lang.String indent
lineWidth
protected java.lang.String lineWidth
preserveSpace
protected java.lang.String preserveSpace
format
protected org.apache.xml.serialize.OutputFormat format
AbstractFormatter
public AbstractFormatter()
init
public void init(Configurations conf)
- Description copied from interface: Configurable
- Initialize the class by passing its configurations.
- Specified by:
- init in interface Configurable
getEncoding
public java.lang.String getEncoding()
- Description copied from interface: Formatter
- Returns the encoding used by this formatter for output.
- Specified by:
- getEncoding in interface Formatter
getMIMEType
public java.lang.String getMIMEType()
- Description copied from interface: Formatter
- Returns the MIME type used by this formatter for output.
- Specified by:
- getMIMEType in interface Formatter
getStatus
public java.lang.String getStatus()
- Description copied from interface: Status
- Returns information about the status of the implementing class.
Note: this is use instead of the usual
toString()
method because some of these methods are declared final in some
classes in JDK 1.1.
- Specified by:
- getStatus in interface Status
Copyright © 1999-2000 Apache Software Foundation. All Rights Reserved.