Class CLAbstractStrings
java.lang.Object
com.io7m.changelog.cmdline.internal.CLAbstractStrings
- All Implemented Interfaces:
CLStringsType
- Direct Known Subclasses:
CLMessages
public abstract class CLAbstractStrings extends java.lang.Object implements CLStringsType
An abstract implementation of the
CLStringsType interface.-
Constructor Summary
Constructors Modifier Constructor Description protectedCLAbstractStrings(java.util.ResourceBundle inResources) -
Method Summary
Modifier and Type Method Description java.lang.Stringformat(java.lang.String id, java.lang.Object... args)Format a message.protected static java.util.ResourceBundleofXML(java.io.InputStream stream)protected static java.util.ResourceBundleofXMLResource(java.lang.Class<?> clazz, java.lang.String resource)java.util.ResourceBundleresources()
-
Constructor Details
-
CLAbstractStrings
protected CLAbstractStrings(java.util.ResourceBundle inResources)
-
-
Method Details
-
ofXML
protected static java.util.ResourceBundle ofXML(java.io.InputStream stream) -
ofXMLResource
protected static java.util.ResourceBundle ofXMLResource(java.lang.Class<?> clazz, java.lang.String resource) -
resources
public final java.util.ResourceBundle resources()- Specified by:
resourcesin interfaceCLStringsType- Returns:
- The underlying resource bundle
-
format
public final java.lang.String format(java.lang.String id, java.lang.Object... args)Description copied from interface:CLStringsTypeFormat a message.- Specified by:
formatin interfaceCLStringsType- Parameters:
id- The string resource IDargs- Any required string format arguments- Returns:
- A formatted string
- See Also:
MessageFormat
-