public class MessageCatalogResource extends VirtualResource
UTF8| Constructor and Description |
|---|
MessageCatalogResource(Locale locale,
ComponentMessagesSource messagesSource,
ResourceChangeTracker changeTracker,
boolean compactJSON) |
| Modifier and Type | Method and Description |
|---|---|
String |
getFile()
StreamableResourceSourceImpl needs a file, and a suffix, to determine the content type.
|
InputStream |
openStream()
Opens a stream to the content of the resource, or returns null if the resource does not exist.
|
String |
toString() |
URL |
toURL()
To work as a streamable resource, must return a value (or null) from toURL.
|
exists, forFile, forLocale, getFolder, getPath, isVirtual, toInputStream, toInputStream, withExtensionpublic MessageCatalogResource(Locale locale, ComponentMessagesSource messagesSource, ResourceChangeTracker changeTracker, boolean compactJSON)
public String getFile()
getFile in interface ResourcegetFile in class VirtualResourcepublic URL toURL()
toURL in interface ResourcetoURL in class VirtualResourcepublic InputStream openStream() throws IOException
ResourceBufferedInputStream.IOException5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.