|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RTSWriter
The RTSWriter
interface defines methods for writing the
header, body, and footer of various output implementations.
The methods startBundle
and endBundle
write the
header and footer portions to the output. The methods for writing the
body are writeString
, writeStringArray
, and
writeMap
. These methods are supplied with data parsed
by the XML-based RTS file XRTSParser
or the
RTSProperties
parser.
ListRTSWriter
Method Summary | |
---|---|
void |
endBundle(java.util.Map parms,
java.util.Map meta)
Writes the file or other output footer(s). |
void |
startBundle(java.util.Map parms,
java.util.Map meta)
Writes the |
void |
writeString(java.util.Map parms,
java.util.Map meta,
java.lang.String key,
java.lang.String value)
Writes a String to the implementation output. |
Method Detail |
---|
void startBundle(java.util.Map parms, java.util.Map meta) throws java.lang.Throwable
parms
- a Map
of command line parameters.meta
- a Map
of parsed non-resource data
(e.g., package).
java.lang.Throwable
void writeString(java.util.Map parms, java.util.Map meta, java.lang.String key, java.lang.String value) throws java.lang.Throwable
String
to the implementation output.
This is the typical case use. A single String
key associated
with a single String
value forming a key/value pair (kvp).
Note that the other two body methods, writeStringArray
and
writeMap
both support a single String
key associated with multiple values.
A key/value pair may have associated attributes in the RTS file.
In this method, these are received from the XML parser as a
Map
.
parms
- a Map
of command line parametersmeta
- a Map
of parsed non-resource data
(e.g., package).key
- a String
key.value
- a String
value.
java.lang.Throwable
void endBundle(java.util.Map parms, java.util.Map meta) throws java.lang.Throwable
parms
- a Map
of command line parameters.meta
- a Map
of parsed non-resource data
(e.g., package).
java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |