public class URLLoaderAdapter extends Object implements UnifiedVirtualFile
| Constructor and Description |
|---|
URLLoaderAdapter(URL rootURL) |
| Modifier and Type | Method and Description |
|---|---|
UnifiedVirtualFile |
findChild(String resourcePath) |
UnifiedVirtualFile |
findChildFailSafe(String resourcePath)
Same as findChild(String child) but does not throw any exception
on child not found, simply returns null.
|
List<UnifiedVirtualFile> |
getChildren() |
String |
getName() |
URL |
toURL() |
public URLLoaderAdapter(URL rootURL)
public UnifiedVirtualFile findChild(String resourcePath) throws IOException
findChild in interface UnifiedVirtualFileIOExceptionpublic UnifiedVirtualFile findChildFailSafe(String resourcePath)
UnifiedVirtualFilefindChildFailSafe in interface UnifiedVirtualFileresourcePath - name of child to findpublic URL toURL()
toURL in interface UnifiedVirtualFilepublic List<UnifiedVirtualFile> getChildren() throws IOException
getChildren in interface UnifiedVirtualFileIOExceptionpublic String getName()
getName in interface UnifiedVirtualFileCopyright © 2015 JBoss, by Red Hat. All rights reserved.