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 UnifiedVirtualFile
IOException
public UnifiedVirtualFile findChildFailSafe(String resourcePath)
UnifiedVirtualFile
findChildFailSafe
in interface UnifiedVirtualFile
resourcePath
- name of child to findpublic URL toURL()
toURL
in interface UnifiedVirtualFile
public List<UnifiedVirtualFile> getChildren() throws IOException
getChildren
in interface UnifiedVirtualFile
IOException
public String getName()
getName
in interface UnifiedVirtualFile
Copyright © 2019 JBoss, by Red Hat. All rights reserved.