Uses of Class
java.lang.Package

Packages that usePackage
Package
Description
java.lang
Provides classes that are fundamental to the design of the Javaprogramming language.
java.net
Provides the classes for implementing networking applications.
  • Uses ofPackage injava.lang

    Methods injava.lang that returnPackage
    Modifier and Type
    Method
    Description
    protectedPackage
    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 thathas been defined by this class loader.
    finalPackage[]
    ClassLoader.getDefinedPackages()
    Returns all of thePackages that have been defined bythis 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 classeswith the same package name, and one such loader relies on the lookupbehavior ofgetPackage to return aPackage froma parent loader, then the properties exposed by thePackagemay 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 classeswith the same package name, and one such loader relies on the lookupbehavior ofgetPackage to return aPackage froma 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 bythis class loader and its ancestors.
    staticPackage[]
    Package.getPackages()
    Returns all of thePackages defined by the caller's class loaderand its ancestors.
  • Uses ofPackage injava.net

    Methods injava.net that returnPackage
    Modifier and Type
    Method
    Description
    protectedPackage
    URLClassLoader.definePackage(String name,Manifest man,URL url)
    Defines a new package by name in thisURLClassLoader.