Class MessageCatalogResource
-
- org.apache.tapestry5.internal.util.VirtualResource
-
- org.apache.tapestry5.internal.util.MessageCatalogResource
-
- All Implemented Interfaces:
Resource
public class MessageCatalogResource extends VirtualResource
-
-
Field Summary
-
Fields inherited from class org.apache.tapestry5.internal.util.VirtualResource
UTF8
-
-
Constructor Summary
Constructors Constructor Description locale, ComponentMessagesSource messagesSource, ResourceChangeTracker changeTracker, boolean compactJSON)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description getFile()
StreamableResourceSourceImpl needs a file, and a suffix, to determine the content type.openStream()
Opens a stream to the content of the resource, or returns null if the resource does not exist.toString()
toURL()
To work as a streamable resource, must return a value (or null) from toURL.-
Methods inherited from class org.apache.tapestry5.internal.util.VirtualResource
exists, forFile, forLocale, getFolder, getPath, isVirtual, toInputStream, toInputStream, withExtension
-
-
-
-
Constructor Detail
-
MessageCatalogResource
public locale, ComponentMessagesSource messagesSource, ResourceChangeTracker changeTracker, boolean compactJSON)
-
-
Method Detail
-
toString
public toString()
- Overrides:
in class
-
getFile
public getFile()
StreamableResourceSourceImpl needs a file, and a suffix, to determine the content type.- Specified by:
getFile
in interfaceResource
- Overrides:
getFile
in classVirtualResource
-
toURL
public toURL()
To work as a streamable resource, must return a value (or null) from toURL.- Specified by:
toURL
in interfaceResource
- Overrides:
toURL
in classVirtualResource
-
openStream
public openStream() throws
Description copied from interface:Resource
Opens a stream to the content of the resource, or returns null if the resource does not exist. The native input stream supplied by the resource is wrapped in a .- Returns:
- an open, buffered stream to the content, if available
- Throws:
-
-