A B C F G I L M N P S T W

A

addSource(Locale, MessageSource) - Method in class com.github.fge.msgsimple.provider.StaticMessageSourceProvider.Builder
Add a message source for a given locale
appendBundle(MessageBundle) - Method in class com.github.fge.msgsimple.bundle.MessageBundleBuilder
Append all message source providers from another bundle
appendProvider(MessageSourceProvider) - Method in class com.github.fge.msgsimple.bundle.MessageBundleBuilder
Append a message provider
appendSource(MessageSource) - Method in class com.github.fge.msgsimple.bundle.MessageBundleBuilder
Convenience method to append a single-source provider
appendSource(Locale, MessageSource) - Method in class com.github.fge.msgsimple.bundle.MessageBundleBuilder
Convenience method to append a single-source provider for a given locale

B

build() - Method in class com.github.fge.msgsimple.provider.LoadingMessageSourceProvider.Builder
Build the provider
build() - Method in class com.github.fge.msgsimple.provider.StaticMessageSourceProvider.Builder
Build the message source provider
build() - Method in class com.github.fge.msgsimple.source.MapMessageSource.Builder
Build a new message source from the contents of this builder

C

checkArgument(boolean, Locale, String) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check for a condition
checkArgument(boolean, String) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check for a condition
checkArgument(boolean, String) - Method in class com.github.fge.msgsimple.InternalBundle
 
checkArgumentFormat(boolean, Locale, String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check for a condition
checkArgumentFormat(boolean, String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check for a condition
checkArgumentPrintf(boolean, Locale, String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check for a condition
checkArgumentPrintf(boolean, String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check for a condition
checkNotNull(T, Locale, String) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check an object reference for null and return it
checkNotNull(T, String) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check a reference for null and return it
checkNotNull(T, String) - Method in class com.github.fge.msgsimple.InternalBundle
 
checkNotNullFormat(T, Locale, String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check a reference for null and return it
checkNotNullFormat(T, String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check a reference for null and return it
checkNotNullPrintf(T, Locale, String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check a reference for null and return it
checkNotNullPrintf(T, String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Check a reference for null and return it
com.github.fge.msgsimple - package com.github.fge.msgsimple
 
com.github.fge.msgsimple.bundle - package com.github.fge.msgsimple.bundle
Main class; property-based bundle provider
com.github.fge.msgsimple.load - package com.github.fge.msgsimple.load
Automatic message bundle loading support
com.github.fge.msgsimple.locale - package com.github.fge.msgsimple.locale
Locale utilities
com.github.fge.msgsimple.provider - package com.github.fge.msgsimple.provider
Message source provider interface and implementations
com.github.fge.msgsimple.source - package com.github.fge.msgsimple.source
Message sources

F

format(Locale, String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Get a locale-dependent message formatted using MessageFormat
format(String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Get a MessageFormat formatted message with the current default locale
forPath(String) - Static method in class com.github.fge.msgsimple.bundle.PropertiesBundle
Create a message bundle from a set of property files, using the UTF-8 character set
forPath(String, long, TimeUnit) - Static method in class com.github.fge.msgsimple.bundle.PropertiesBundle
Create a message bundle from a set of property files, using the UTF-8 character set, and an expiry delay
forPath(String, Charset, long, TimeUnit) - Static method in class com.github.fge.msgsimple.bundle.PropertiesBundle
Create a message bundle from a set of property files, with a defined charset and expiry time
freeze() - Method in class com.github.fge.msgsimple.bundle.MessageBundleBuilder
 
fromFile(File) - Static method in class com.github.fge.msgsimple.source.PropertiesMessageSource
Create a message source from a properties file on the filesystem using UTF-8
fromFile(File, Charset) - Static method in class com.github.fge.msgsimple.source.PropertiesMessageSource
Create a message source from a properties file on the filesystem using the specified charset
fromPath(String) - Static method in class com.github.fge.msgsimple.source.PropertiesMessageSource
Create a message source from a properties file on the filesystem using the specified encoding
fromPath(String, Charset) - Static method in class com.github.fge.msgsimple.source.PropertiesMessageSource
Create a message source from a properties file on the filesystem using the specified charset
fromResource(String) - Static method in class com.github.fge.msgsimple.source.PropertiesMessageSource
Create a message source from a classpath resource using UTF-8
fromResource(String, Charset) - Static method in class com.github.fge.msgsimple.source.PropertiesMessageSource
Create a message source from a classpath resource using the specified charset

G

getApplicable(Locale) - Static method in class com.github.fge.msgsimple.locale.LocaleUtils
Get a "decrementing" list of candidate locales for a given locale
getBundle() - Method in interface com.github.fge.msgsimple.load.MessageBundleLoader
Get a message bundle
getBundle(Class<? extends MessageBundleLoader>) - Static method in class com.github.fge.msgsimple.load.MessageBundles
Get a message bundle for a registered MessageBundleLoader implementation
getInstance() - Static method in class com.github.fge.msgsimple.InternalBundle
 
getKey(String) - Method in class com.github.fge.msgsimple.source.MapMessageSource
 
getKey(String) - Method in interface com.github.fge.msgsimple.source.MessageSource
Return a message matching a given key
getKey(String) - Method in class com.github.fge.msgsimple.source.PropertiesMessageSource
 
getMessage(Locale, String) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Get a message for the given key and locale
getMessage(String) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Return a message for a given key, using the JVM's current locale
getMessage(String) - Method in class com.github.fge.msgsimple.InternalBundle
 
getMessageSource(Locale) - Method in class com.github.fge.msgsimple.provider.LoadingMessageSourceProvider
 
getMessageSource(Locale) - Method in interface com.github.fge.msgsimple.provider.MessageSourceProvider
Provide a message source for a given locale
getMessageSource(Locale) - Method in class com.github.fge.msgsimple.provider.StaticMessageSourceProvider
 

I

InternalBundle - Class in com.github.fge.msgsimple
Class meant for internal use by the API.

L

legacyResourceBundle(String) - Static method in class com.github.fge.msgsimple.bundle.PropertiesBundle
Create a message bundle mimicking a ResourceBundle
load(Locale) - Method in interface com.github.fge.msgsimple.provider.MessageSourceLoader
Load a message source for a locale
LoadingMessageSourceProvider - Class in com.github.fge.msgsimple.provider
A caching, on-demand loading message source provider with configurable expiry
LoadingMessageSourceProvider.Builder - Class in com.github.fge.msgsimple.provider
Builder class for a LoadingMessageSourceProvider
LocaleUtils - Class in com.github.fge.msgsimple.locale
Utility methods for Locale management

M

MapMessageSource - Class in com.github.fge.msgsimple.source
A Map-based message source
MapMessageSource.Builder - Class in com.github.fge.msgsimple.source
Builder class for a MapMessageSource
MessageBundle - Class in com.github.fge.msgsimple.bundle
A message bundle
MessageBundleBuilder - Class in com.github.fge.msgsimple.bundle
Builder class for a message bundle
MessageBundleLoader - Interface in com.github.fge.msgsimple.load
Interface for a MessageBundle provider
MessageBundles - Class in com.github.fge.msgsimple.load
Centralized access point for bundles
MessageSource - Interface in com.github.fge.msgsimple.source
Interface for one message source
MessageSourceLoader - Interface in com.github.fge.msgsimple.provider
Load a message source for a given locale
MessageSourceProvider - Interface in com.github.fge.msgsimple.provider
Provider for one message source, according to a given locale

N

neverExpires() - Method in class com.github.fge.msgsimple.provider.LoadingMessageSourceProvider.Builder
Set this loading provider so that entries never expire
newBuilder() - Static method in class com.github.fge.msgsimple.bundle.MessageBundle
Create a new, empty builder for a bundle
newBuilder() - Static method in class com.github.fge.msgsimple.provider.LoadingMessageSourceProvider
Create a new builder
newBuilder() - Static method in class com.github.fge.msgsimple.provider.StaticMessageSourceProvider
Create a new static source builder
newBuilder() - Static method in class com.github.fge.msgsimple.source.MapMessageSource
Create a new builder for a map message source

P

parseLocale(String) - Static method in class com.github.fge.msgsimple.locale.LocaleUtils
Parse a string input as an argument and return a locale object
prependBundle(MessageBundle) - Method in class com.github.fge.msgsimple.bundle.MessageBundleBuilder
Prepend all message source providers from another bundle
prependProvider(MessageSourceProvider) - Method in class com.github.fge.msgsimple.bundle.MessageBundleBuilder
Prepend a message provider
prependSource(MessageSource) - Method in class com.github.fge.msgsimple.bundle.MessageBundleBuilder
Convenience method to prepend a single-source provider
prependSource(Locale, MessageSource) - Method in class com.github.fge.msgsimple.bundle.MessageBundleBuilder
Convenience method to prepend a single-source provider for a given locale
printf(Locale, String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Get a locale-dependent printf()-like formatted message
printf(String, Object...) - Method in class com.github.fge.msgsimple.bundle.MessageBundle
Get a printf()-like message with the default locale
printf(String, Object...) - Method in class com.github.fge.msgsimple.InternalBundle
 
PropertiesBundle - Class in com.github.fge.msgsimple.bundle
Utility class to instantiate message bundles from Java property files
PropertiesMessageSource - Class in com.github.fge.msgsimple.source
A message source built from a properties files
put(String, String) - Method in class com.github.fge.msgsimple.source.MapMessageSource.Builder
Add one key/message pair
putAll(Map<String, String>) - Method in class com.github.fge.msgsimple.source.MapMessageSource.Builder
Add a map of key/message pairs

S

setDefaultSource(MessageSource) - Method in class com.github.fge.msgsimple.provider.LoadingMessageSourceProvider.Builder
Set the default message source if the loader fails to load
setDefaultSource(MessageSource) - Method in class com.github.fge.msgsimple.provider.StaticMessageSourceProvider.Builder
Set a default message source
setExpiryTime(long, TimeUnit) - Method in class com.github.fge.msgsimple.provider.LoadingMessageSourceProvider.Builder
Set the source expiry time (10 minutes by default)
setLoader(MessageSourceLoader) - Method in class com.github.fge.msgsimple.provider.LoadingMessageSourceProvider.Builder
Set the message source loader
setLoadTimeout(long, TimeUnit) - Method in class com.github.fge.msgsimple.provider.LoadingMessageSourceProvider.Builder
Set the load timeout (1 second by default)
StaticMessageSourceProvider - Class in com.github.fge.msgsimple.provider
Static message source provider
StaticMessageSourceProvider.Builder - Class in com.github.fge.msgsimple.provider
Builder for a StaticMessageSourceProvider

T

thaw() - Method in class com.github.fge.msgsimple.bundle.MessageBundle
 

W

withSingleSource(MessageSource) - Static method in class com.github.fge.msgsimple.bundle.MessageBundle
Convenience static factory method to create a bundle with a single message source
withSingleSource(MessageSource) - Static method in class com.github.fge.msgsimple.provider.StaticMessageSourceProvider
Convenience method to create a provider with a single source
withSingleSource(Locale, MessageSource) - Static method in class com.github.fge.msgsimple.provider.StaticMessageSourceProvider
Convenience method to create a provider with a single source for a specific locale

A B C F G I L M N P S T W