Package org.apache.fop.util.text
Class LocatorFormatter
java.lang.Object
org.apache.fop.util.text.LocatorFormatter
- All Implemented Interfaces:
AdvancedMessageFormat.ObjectFormatter
Object formatter for the SAX Locator object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
format
(StringBuffer sb, Object obj) Formats an object to a string and writes the result to a string buffer.boolean
supportsObject
(Object obj) Indicates whether a given object is supported.
-
Constructor Details
-
LocatorFormatter
public LocatorFormatter()
-
-
Method Details
-
format
Formats an object to a string and writes the result to a string buffer.- Specified by:
format
in interfaceAdvancedMessageFormat.ObjectFormatter
- Parameters:
sb
- the target string bufferobj
- the object to be formatted
-
supportsObject
Indicates whether a given object is supported.- Specified by:
supportsObject
in interfaceAdvancedMessageFormat.ObjectFormatter
- Parameters:
obj
- the object- Returns:
- true if the object is supported by the formatter
-