|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectsk.baka.webvm.analyzer.classloader.ResourceLink
sk.baka.webvm.analyzer.classloader.ResourceLinkGroup
final class ResourceLinkGroup
A delegate for a real resource link. Serves for grouping of multiple package names. Always a package.
| Constructor Summary | |
|---|---|
ResourceLinkGroup(String name,
ResourceLink delegate)
|
|
| Method Summary | |
|---|---|
File |
getContainer()
Returns a file link to the resource container containing these links. |
String |
getFullName()
Returns a full name, including parent packages and full path to the root. |
long |
getLength()
Returns length of underlying resource. |
String |
getName()
Returns the package/resource name. |
boolean |
isPackage()
Checks if resource denoted by this object is actually a package, or just a resource file. |
boolean |
isRoot()
Checks if this resource link denotes a root of a jar/directory. |
List<ResourceLink> |
list()
Lists all direct child packages and items of this package. |
InputStream |
open()
Opens a stream to the file denoted by this link. |
List<ResourceLink> |
search(String substring)
Performs a search for given substring. |
| Methods inherited from class sk.baka.webvm.analyzer.classloader.ResourceLink |
|---|
assertNotPackage, assertPackage, findFirstByName, getNames, listAndGroup, newFor, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ResourceLinkGroup(String name,
ResourceLink delegate)
| Method Detail |
|---|
public List<ResourceLink> list()
throws IOException
ResourceLink
list in class ResourceLinkIOException - on i/o errorpublic boolean isPackage()
ResourceLink
isPackage in class ResourceLinkRoot link is always a package.
public InputStream open()
throws IOException
ResourceLink
open in class ResourceLinkIOException - on i/o errorpublic String getName()
ResourceLink
getName in class ResourceLinkpublic long getLength()
ResourceLink
getLength in class ResourceLinkpublic boolean isRoot()
ResourceLink
isRoot in class ResourceLinkpublic File getContainer()
ResourceLinkroot links.
getContainer in class ResourceLink
public List<ResourceLink> search(String substring)
throws IOException
ResourceLink
search in class ResourceLinksubstring - a string to search, must not be null.
IOException - on i/o errorpublic String getFullName()
ResourceLink
getFullName in class ResourceLink
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||