Package eu.bandm.tools.muli
Class CatalogByString
- Direct Known Subclasses:
BatchOptions.Descriptions
,CallXsltOptions.Descriptions
,DocTexts
,InsertOverprintOptions.Descriptions
,JarLinkerOptions.Descriptions
,JWhichOptions.Descriptions
,Messages
,Options.Descriptions
,Options.Descriptions
,Options.Descriptions
,Options.Descriptions
,Options.Descriptions
,Options.Descriptions
,Options.Descriptions
,ParameterExpanderOptions.Descriptions
,ToolOptions.Descriptions
,Translations
,Translations
,Translations
,Translations
-
Nested Class Summary
Nested classes/interfaces inherited from class eu.bandm.tools.muli.Catalog
Catalog.Const
-
Field Summary
Modifier and TypeFieldDescriptionstatic final Pattern
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>>
protected String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
doload
(InputSource s, boolean eliminateNewlines) getKeys()
void
load
(File f, boolean eliminateNewlines, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Fill the data encoded in the text file into the catalog object.void
load
(Reader s, String sourceId, boolean eliminateNewlines, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Fill the data encoded in the current text of the reader into the catalog object.static void
test function: takesarg[0]
as the path to a file which is read into a CatalogByString object and dumped toSystem.out
static String
void
Put translations in which the very first text is also the key.Methods inherited from class eu.bandm.tools.muli.Catalog
_format, _format, _translateArgs, containsKey, dump, get, get, get, get, getKey, getKeys, getKeys, insitu, insitu, insitu, insitu, INSITU, INSITU, makeMap, makeMuli, noTranslate, put, put, put, put, putAll, putAll, readLanguageMap, readLanguages, readLanguagesString, translateAllAndFormatRobust, translateAllAndFormatRobust, translateArgsAndFormatRobust, translateArgsAndFormatRobust, translateKeyAndFormatRobust, translateKeyAndFormatRobust, translateRobust, translateRobust
-
Field Details
-
msg
-
sourceId
-
linefeedPattern
-
-
Constructor Details
-
CatalogByString
public CatalogByString()
-
-
Method Details
-
getKeys
-
putAsKey
Put translations in which the very first text is also the key. CallsCatalog.put(Object, List)
-
normalizeLinefeed
-
load
public void load(File f, boolean eliminateNewlines, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Fill the data encoded in the text file into the catalog object. The text structure is described directly by a simple dtd. See also the user documentation- Parameters:
f
- the source filemsg
- receives error messages when parsing
-
load
public void load(Reader s, String sourceId, boolean eliminateNewlines, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg) Fill the data encoded in the current text of the reader into the catalog object. The text structure is described directly by a simple dtd. See also the user documentation- Parameters:
s
- represents the source streamsourceId
- substitutes the file name for generating error messagesmsg
- receives error messages when parsing
-
doload
-
main
test function: takesarg[0]
as the path to a file which is read into a CatalogByString object and dumped toSystem.out
-