Class MessageCatalogResource
java.lang.Object
org.apache.tapestry5.internal.util.VirtualResource
org.apache.tapestry5.internal.util.MessageCatalogResource
- All Implemented Interfaces:
Resource
-
Field Summary
Fields inherited from class org.apache.tapestry5.internal.util.VirtualResource
UTF8 -
Constructor Summary
ConstructorsConstructorDescriptionMessageCatalogResource(Locale locale, ComponentMessagesSource messagesSource, ResourceChangeTracker changeTracker, boolean compactJSON) -
Method Summary
Modifier and TypeMethodDescriptiongetFile()StreamableResourceSourceImpl needs a file, and a suffix, to determine the content type.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 Details
-
MessageCatalogResource
public MessageCatalogResource(Locale locale, ComponentMessagesSource messagesSource, ResourceChangeTracker changeTracker, boolean compactJSON)
-
-
Method Details
-
toString
-
getFile
StreamableResourceSourceImpl needs a file, and a suffix, to determine the content type.- Specified by:
getFilein interfaceResource- Overrides:
getFilein classVirtualResource
-
toURL
To work as a streamable resource, must return a value (or null) from toURL.- Specified by:
toURLin interfaceResource- Overrides:
toURLin classVirtualResource
-
openStream
Description copied from interface:ResourceOpens 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 aBufferedInputStream.- Returns:
- an open, buffered stream to the content, if available
- Throws:
IOException
-