|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object fr.gedeon.telnetservice.OutputFormatDefaultImpl
public class OutputFormatDefaultImpl
This is the default output format implementation provided by the basic package, it formats everything by calling String.valueOf(...) on the subject.
Constructor Summary | |
---|---|
OutputFormatDefaultImpl()
|
Method Summary | |
---|---|
String |
format(SessionState sessionState,
Object subject)
Format the given subject for output based on rules that are implementation specific. |
String |
format(SessionState sessionState,
Object subject,
String indent)
Format the given subject for output based on rules that are implementation specific. |
StringBuffer |
format(SessionState sessionState,
StringBuffer buffer,
Object subject)
Format the given subject for output based on rules that are implementation specific. This version of the signature allows the caller to provide a buffer for this output format implementation to append to. |
StringBuffer |
format(SessionState sessionState,
StringBuffer buffer,
Object subject,
String indent)
Format the given subject for output based on rules that are implementation specific. This version of the signature allows the caller to provide a buffer for this output format implementation to append to. |
boolean |
formats(Object subject)
Called to check if the implementation of this interface knows how to format the given subject. |
Integer |
getPriority()
This output format has the lowest possible priority. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public OutputFormatDefaultImpl()
Method Detail |
---|
public Integer getPriority()
getPriority
in interface OutputFormatSpi
Integer.MAX_VALUE
public boolean formats(Object subject)
OutputFormatSpi
formats
in interface OutputFormatSpi
true
public String format(SessionState sessionState, Object subject) throws OutputFormatException
OutputFormat
format
in interface OutputFormat
sessionState
- the current session statesubject
- the subject to be represented
OutputFormatException
- for any errors that occur in the formatting process.public StringBuffer format(SessionState sessionState, StringBuffer buffer, Object subject) throws OutputFormatException
OutputFormat
format
in interface OutputFormat
sessionState
- the current session statebuffer
- the caller's current buffersubject
- the subject to be represented
OutputFormatException
- for any errors that occur in the formatting process.public StringBuffer format(SessionState sessionState, StringBuffer buffer, Object subject, String indent) throws OutputFormatException
OutputFormat
format
in interface OutputFormat
sessionState
- the current session statebuffer
- the caller's current buffersubject
- the subject to be representedindent
- a hint to the indent expected by the caller at the beginning of each line.
OutputFormatException
- for any errors that occur in the formatting process.public String format(SessionState sessionState, Object subject, String indent) throws OutputFormatException
OutputFormat
format
in interface OutputFormat
sessionState
- the current session statesubject
- the subject to be representedindent
- a hint to the indent expected by the caller at the beginning of each line.
OutputFormatException
- for any errors that occur in the formatting process.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |