Uses of Class
java.lang.Package
| Package | Description |
|---|---|
| java.lang | Provides classes that are fundamental to the design of the Java programming language. |
| java.net | Provides the classes for implementing networking applications. |
Uses ofPackage injava.lang
Methods injava.lang that returnPackage Modifier and Type Method Description protectedPackageClassLoader. definePackage(String name,String specTitle,String specVersion,String specVendor,String implTitle,String implVersion,String implVendor,URL sealBase)Defines a package byname in thisClassLoader.PackageClassLoader. getDefinedPackage(String name)Returns aPackageof the givenname that has been defined by this class loader.Package[]ClassLoader. getDefinedPackages()Returns all of thePackages that have been defined by this class loader.PackageClass. getPackage()Gets the package of this class.protectedPackageClassLoader. 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.staticPackagePackage. 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.protectedPackage[]ClassLoader. getPackages()Returns all of thePackages that have been defined by this class loader and its ancestors.staticPackage[]Package. getPackages()Returns all of thePackages defined by the caller's class loader and its ancestors.Uses ofPackage injava.net