Uses of Class
java.lang.Package
Packages that usePackage
Package
Description
Provides classes that are fundamental to the design of the Java programming language.
Provides the classes for implementing networking applications.
Uses ofPackage injava.lang
Modifier and TypeMethodDescriptionprotectedPackage
ClassLoader.definePackage
(String name,String specTitle,String specVersion,String specVendor,String implTitle,String implVersion,String implVendor,URL sealBase) Defines a package byname in thisClassLoader
.finalPackage
ClassLoader.getDefinedPackage
(String name) Returns aPackage
of the givenname that has been defined by this class loader.finalPackage[]
ClassLoader.getDefinedPackages()
Returns all of thePackage
s that have been defined by this class loader.Class.getPackage()
Gets the package of this class.protectedPackage
ClassLoader.getPackage
(String name) Deprecated.If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackage
to return aPackage
from a parent loader, then the properties exposed by thePackage
may not be as expected in the rest of the program.staticPackage
Package.getPackage
(String name) Deprecated.If multiple class loaders delegate to each other and define classes with the same package name, and one such loader relies on the lookup behavior ofgetPackage
to return aPackage
from a parent loader, then the properties exposed by thePackage
may not be as expected in the rest of the program.protectedPackage[]
ClassLoader.getPackages()
Returns all of thePackage
s that have been defined by this class loader and its ancestors.staticPackage[]
Package.getPackages()
Returns all of thePackage
s defined by the caller's class loader and its ancestors.Uses ofPackage injava.net
Modifier and TypeMethodDescriptionprotectedPackage
URLClassLoader.definePackage
(String name,Manifest man,URL url) Defines a new package by name in thisURLClassLoader
.