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, withExtension
public MessageCatalogResource(Locale locale, ComponentMessagesSource messagesSource, ResourceChangeTracker changeTracker, boolean compactJSON)
public String getFile()
getFile
in interface Resource
getFile
in class VirtualResource
public URL toURL()
toURL
in interface Resource
toURL
in class VirtualResource
public InputStream openStream() throws IOException
Resource
BufferedInputStream
.IOException
${project.version} - Copyright © 2003-2015 The Apache Software Foundation.