public class ClientLocalizationMessageResource extends VirtualResource
UTF8| Constructor and Description |
|---|
ClientLocalizationMessageResource() |
| Modifier and Type | Method and Description |
|---|---|
Resource |
forLocale(Locale locale)
Returns a localized version of the resource.
|
String |
getFile()
Returns the file portion of the Resource path, everything that follows the final forward slash.
|
String |
getPath()
Return the path (the combination of folder and file).
|
InputStream |
openStream()
Opens a stream to the content of the resource, or returns null if the resource does not exist.
|
URL |
toURL()
Returns the URL for the resource, or null if it does not exist.
|
Resource |
withExtension(String extension)
Returns a new Resource with the extension changed (or, if the resource does not have an extension, the extension
is added).
|
exists, forFile, getFolder, isVirtual, toInputStream, toInputStreampublic ClientLocalizationMessageResource()
public Resource withExtension(String extension)
ResourceResource.toURL() may return null.withExtension in interface ResourcewithExtension in class VirtualResourceextension - to apply to the resource, such as "html" or "properties"public String getPath()
ResourcegetPath in interface ResourcegetPath in class VirtualResourcepublic String getFile()
ResourcegetFile in interface ResourcegetFile in class VirtualResourcepublic URL toURL()
ResourcetoURL in interface ResourcetoURL in class VirtualResourcepublic Resource forLocale(Locale locale)
ResourceforLocale in interface ResourceforLocale in class VirtualResourcepublic InputStream openStream() throws IOException
ResourceBufferedInputStream.IOException5.6.4 - Copyright © 2003-2021 The Apache Software Foundation.