public class ListRTSWriter extends Object implements RTSWriter
ListRTSWriter class is an implementation of the
RTSWriter interface used to create a Sun
ListResourceBundle file.| Constructor and Description |
|---|
ListRTSWriter()
Empty constructor for the
ListResourceBundle implementation |
| Modifier and Type | Method and Description |
|---|---|
void |
endBundle(Map parms,
Map meta)
RTSWriter method implementation to close the file stream
required for the ListResourceBundle. |
protected PrintWriter |
getOut() |
void |
startBundle(Map parms,
Map meta)
RTSWriter method implementation to write the header of the
ListResourceBundle file. |
protected void |
writeImports(Map parms,
Map meta) |
void |
writeString(Map parms,
Map meta,
String key,
String value)
Writes a
String to the implementation output. |
public ListRTSWriter()
ListResourceBundle implementationpublic void startBundle(Map parms, Map meta) throws Throwable
RTSWriter method implementation to write the header of the
ListResourceBundle file.startBundle in interface RTSWriterparms - a Map of command line parameters.meta - a Map of parsed non-resource data
(e.g., authors).Throwablepublic void writeString(Map parms, Map meta, String key, String value) throws Throwable
RTSWriterString 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.
writeString in interface RTSWriterparms - a Map of command line parametersmeta - a Map of parsed non-resource data
(e.g., package).key - a String key.value - a String value.Throwablepublic void endBundle(Map parms, Map meta) throws Throwable
RTSWriter method implementation to close the file stream
required for the ListResourceBundle. Before closing, this
method also writes the footer portions of the file. The footer portions
consist of little more than closing braces.protected PrintWriter getOut()
Copyright © 2001-2012 Apache Software Foundation. All Rights Reserved.