Uses of Class
java.lang.Package
Packages that use Package
Package
Description
Provides classes that are fundamental to the design of the Java
programming language.
Provides the classes for implementing networking applications.
-
Uses of Package in java.lang
Modifier and TypeMethodDescriptionprotected PackageClassLoader.definePackage(String name, String specTitle, String specVersion, String specVendor, String implTitle, String implVersion, String implVendor, URL sealBase) Define a new Package using the specified information.final PackageClassLoader.getDefinedPackage(String name) Answers a package of given name defined by this ClassLoader.final Package[]ClassLoader.getDefinedPackages()Answers all the packages defined by this classloader.Class.getPackage()Returns the Package of which this class is a member.protected PackageClassLoader.getPackage(String name) Deprecated.Use getDefinedPackage(String)static PackagePackage.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 ofgetPackageto return aPackagefrom a parent loader, then the properties exposed by thePackagemay not be as expected in the rest of the program.protected Package[]ClassLoader.getPackages()Answers all the packages known to this class loader.static Package[]Package.getPackages()Returns all of thePackages defined by the caller's class loader and its ancestors. -
Uses of Package in java.net
Modifier and TypeMethodDescriptionprotected PackageURLClassLoader.definePackage(String name, Manifest man, URL url) Defines a new package by name in thisURLClassLoader.