|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface that defines a processor.
Method Summary | |
java.lang.String |
getDescription()
Returns the description of this processor, in the default Locale, or the default available Locale of this Processor. |
java.lang.String |
getDescription(java.util.Locale l)
Returns the description of this processor, in the given Locale. |
java.lang.String |
getName()
Returns the name of this processor. |
java.util.Locale[] |
listAvailableLocales()
Returns a list of supported locales with regard to the descriptions. |
java.io.InputStream |
process(java.io.InputStream in)
Returns an InputStream where the
processed given source InputStream can be
read from. |
java.lang.String |
process(java.lang.String str)
Processes the given String and returns
the result as String . |
void |
setDefaultLocale(java.util.Locale l)
Sets the default Locale of this processor to the given Locale, if an only if a description in this locale exists. |
void |
setDescription(java.lang.String desc,
java.util.Locale l)
Sets the description of this processor in a given Locale. |
Method Detail |
public java.lang.String getName()
String
.public java.lang.String getDescription()
String
.public java.lang.String getDescription(java.util.Locale l)
l
- a Locale.String
.public void setDescription(java.lang.String desc, java.util.Locale l)
desc
- the description of this processor as
String
.l
- a Locale.public void setDefaultLocale(java.util.Locale l)
l
- a Locale.public java.util.Locale[] listAvailableLocales()
public java.lang.String process(java.lang.String str)
String
and returns
the result as String
.String
.public java.io.InputStream process(java.io.InputStream in) throws java.io.IOException
InputStream
where the
processed given source InputStream
can be
read from.
(Pull principle)the
- source as InputStream
.InputStream
to be read for the
processed form of the given InputStream
.java.io.IOException
- if there is an I/O error.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |