|
||||||||||
| 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.JarResourceLink
final class JarResourceLink
Provides package information for an on-disk jar file.
| Constructor Summary | |
|---|---|
JarResourceLink(File jarFile,
String fullEntryName,
boolean isRoot)
|
|
| 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. |
String |
toString()
|
| Methods inherited from class sk.baka.webvm.analyzer.classloader.ResourceLink |
|---|
assertNotPackage, assertPackage, findFirstByName, getNames, listAndGroup, newFor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
JarResourceLink(File jarFile,
String fullEntryName,
boolean isRoot)
| 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 ResourceLink
public long getLength()
throws IOException
ResourceLink
getLength in class ResourceLinkIOException - on i/o errorpublic boolean isRoot()
ResourceLink
isRoot in class ResourceLinkpublic File getContainer()
ResourceLinkroot links.
getContainer in class ResourceLinkpublic String toString()
toString 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 | |||||||||