ro.isdc.wro.model.resource.locator.wildcard
Interface WildcardStreamLocator
- All Known Implementing Classes:
- DefaultWildcardStreamLocator, JarWildcardStreamLocator
public interface WildcardStreamLocator
Defines the way resources containing wildcard characters are located.
- Author:
- Alex Objelean
hasWildcard
boolean hasWildcard(String uri)
- Parameters:
uri
- to check
- Returns:
- true if the uri contains a wildcard.
locateStream
InputStream locateStream(String uri,
File folder)
throws IOException
- Locates the stream based on the fileName containing the wildcard and the folder where to search.
- Parameters:
uri
- the resource of the uri to locate. This uri should be exactly the same as defined in Resource
.folder
- parent from where the search of fileNameWithWildcard should start.
- Returns:
InputStream
to the resources collection matching the wildcard.
- Throws:
IOException
- if folder is invalid or when I/O error occurs while locating the stream.
Copyright © 2008-2013. All Rights Reserved.