Package | Description |
---|---|
java.lang | |
java.net |
Modifier and Type | Method and Description |
---|---|
protected Package |
ClassLoader.definePackage(String pkgname,
String spectitle,
String specversion,
String specvendor,
String impltitle,
String implversion,
String implvendor,
URL sealbase)
Define a package by name.
|
Package |
Class.getPackage()
Get the Package this Class belongs to.
|
protected Package |
ClassLoader.getPackage(String pkgname)
Get the Package object associated with the given package name.
|
static Package |
Package.getPackage(String name)
Find a package by name.
|
protected Package[] |
ClassLoader.getPackages()
Get all Package objects known to this ClassLoader and its ancestors,
as an array of all things.
|
static Package[] |
Package.getPackages()
Get all known packages.
|
Modifier and Type | Method and Description |
---|---|
protected Package |
URLClassLoader.definePackage(String pname,
Manifest man,
URL url) |