软件包 | 描述 |
---|---|
java.awt.datatransfer |
提供用于在应用程序中的数据之间传输数据的接口和类。
|
java.beans |
包含的类发展豆相关--基于JavaBeans组件™架构。
|
java.lang |
提供对java编程语言的设计基础课。
|
java.lang.instrument |
提供的服务允许java编程语言的代理工具运行在JVM上的程序。
|
java.lang.invoke |
java.lang.invoke 包中包含的动态语言支持的java核心类库和虚拟机直接提供。
|
java.lang.reflect |
提供用于获取类和对象的反射信息的类和接口。
|
java.net |
为实现网络应用程序提供类。
|
java.nio.file |
定义的接口和类的java虚拟机访问文件,文件属性,文件系统。
|
java.rmi.server |
支持RMI服务器端提供的类和接口。
|
java.security |
为安全框架提供类和接口。
|
java.util |
包含集合框架、遗留的集合类、事件模型、日期和时间的设施、国际化和各种实用工具类(一个字符串标记,一个随机数发生器,和一位阵列)。
|
javax.activation | |
javax.imageio.spi |
一包I/O API包含读者、作家的插件接口,代码转换器,和溪流的java图像,和一个运行时注册表。
|
javax.management |
在java管理扩展提供了核心课程。
|
javax.management.loading |
提供实现高级动态加载的类。
|
javax.management.remote.rmi |
RMI连接器是一个JMX远程API,使用RMI传输客户端请求到远程管理服务器连接器。
|
javax.rmi.CORBA |
包含携带RMI-IIOP API。
|
javax.script |
脚本API的接口和类,定义
TM java脚本引擎提供了一种用于java应用程序框架。
|
javax.sql.rowset |
JDBC
RowSet 实现标准接口和基类。
|
javax.swing |
提供了一套“轻量级”(所有的java语言)组件,以最大可能的程度,在所有平台上工作。
|
javax.tools |
为可以从程序调用的工具提供接口,例如,编译器。
|
javax.xml.bind |
为客户端应用程序提供包括解包,编组运行时绑定框架,和验证能力。
|
javax.xml.datatype |
XML / java类型映射。
|
javax.xml.parsers |
提供允许处理XML文档的类。
|
javax.xml.stream | |
javax.xml.transform |
该软件包定义了用于处理变换指令的通用的接口,并执行从源到结果的转换。
|
javax.xml.validation |
这个软件包提供了一个用于验证XML文档的API。
|
javax.xml.xpath |
这个包提供XPath表达式获取评价环境评价对象模型中立的API。
|
Modifier and Type | Method and Description |
---|---|
protected static 类<?> |
DataFlavor.tryToLoadClass(String className, ClassLoader fallback)
尝试从:引导加载程序、系统加载程序、上下文加载程序(如果存在的话)加载一个类,并最终加载指定的。
|
Constructor and Description |
---|
DataFlavor(String mimeType, String humanPresentableName, ClassLoader classLoader)
构建了一个
DataFlavor 表示
MimeType 。
|
Modifier and Type | Method and Description |
---|---|
static DefaultHandler |
XMLDecoder.createHandler(Object owner, ExceptionListener el, ClassLoader cl)
创建SAX解析器,可以用来解析嵌入式XML档案的
XMLEncoder 类创建了一个新的处理程序。
|
static Object |
Beans.instantiate(ClassLoader cls, String beanName)
实例化一个JavaBean。
|
static Object |
Beans.instantiate(ClassLoader cls, String beanName, BeanContext beanContext)
实例化一个JavaBean。
|
static Object |
Beans.instantiate(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer)
实例化一个豆。
|
Constructor and Description |
---|
XMLDecoder(InputStream in, Object owner, ExceptionListener exceptionListener, ClassLoader cl)
建立阅读档案的
XMLEncoder 类创建一个新的输入流。
|
Modifier and Type | Method and Description |
---|---|
protected ClassLoader |
SecurityManager.currentClassLoader()
过时的。
不建议使用这种类型的安全检查。建议
checkPermission 可以用来代替。
|
ClassLoader |
Class.getClassLoader()
返回类的类装载器。
|
ClassLoader |
Thread.getContextClassLoader()
返回该线程的上下文类加载器。
|
ClassLoader |
ClassLoader.getParent()
返回代理的父类加载程序。
|
static ClassLoader |
ClassLoader.getSystemClassLoader()
返回用于代表团的系统级加载程序。
|
Modifier and Type | Method and Description |
---|---|
static 类<?> |
Class.forName(String name, boolean initialize, ClassLoader loader)
返回
类 对象相关的类或接口的给定的字符串名称,使用给定的类装载器。
|
void |
Thread.setContextClassLoader(ClassLoader cl)
设置此线程上下文类加载器。
|
Constructor and Description |
---|
ClassLoader(ClassLoader parent)
使用指定的父类加载程序创建一个新的类装载器。
|
Modifier and Type | Method and Description |
---|---|
类[] |
Instrumentation.getInitiatedClasses(ClassLoader loader)
返回一个数组的所有类,
loader 是启动加载器。
|
byte[] |
ClassFileTransformer.transform(ClassLoader loader, String className, 类<?> classBeingRedefined, ProtectionDomain protectionDomain, byte[] classfileBuffer)
此方法的实现可能会改变提供的类文件,并返回一个新的替换类文件。
|
Modifier and Type | Method and Description |
---|---|
static MethodType |
MethodType.fromMethodDescriptorString(String descriptor, ClassLoader loader)
寻找或创建一个方法类型的一个实例,给出了其字节码描述符的拼写。
|
Modifier and Type | Method and Description |
---|---|
static 类<?> |
Proxy.getProxyClass(ClassLoader loader, 类<?>... interfaces)
返回
java.lang.Class 对象的代理类,给出了类装载器和一个阵列的接口。
|
static Object |
Proxy.newProxyInstance(ClassLoader loader, 类<?>[] interfaces, InvocationHandler h)
返回指定的接口,将方法调用指定的调用处理程序的代理类的一个实例。
|
Modifier and Type | Class and Description |
---|---|
class |
URLClassLoader
这个类装载器用于从目录的搜索路径中加载类和资源,指的是两个文件和目录。
|
Modifier and Type | Method and Description |
---|---|
static URLClassLoader |
URLClassLoader.newInstance(URL[] urls, ClassLoader parent)
创建指定的URL和父类加载器的URLClassLoader的一个新实例。
|
Constructor and Description |
---|
URLClassLoader(URL[] urls, ClassLoader parent)
构建新的urlclassloader给定的URL。
|
URLClassLoader(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory)
为指定的URL构造一个新的urlclassloader,父类装载器,并urlstreamhandlerfactory。
|
Modifier and Type | Method and Description |
---|---|
static FileSystem |
FileSystems.newFileSystem(Path path, ClassLoader loader)
构建访问一个文件的内容作为一个文件系统的一个新的
FileSystem 。
|
static FileSystem |
FileSystems.newFileSystem(URI uri, Map<String,?> env, ClassLoader loader)
构建了一个新的文件系统,是由一个
URI 鉴定
|
Modifier and Type | Method and Description |
---|---|
static ClassLoader |
RMIClassLoader.getClassLoader(String codebase)
返回一个类加载器加载的类从给定的代码库的URL路径。
|
abstract ClassLoader |
RMIClassLoaderSpi.getClassLoader(String codebase)
|
Modifier and Type | Method and Description |
---|---|
Object |
LoaderHandler.getSecurityContext(ClassLoader loader)
过时的。
没有更换
|
static Object |
RMIClassLoader.getSecurityContext(ClassLoader loader)
过时的。
没有更换。作为java 2平台V1.2,RMI不再使用此方法获得的类装载器的安全上下文。
|
static 类<?> |
RMIClassLoader.loadClass(String codebase, String name, ClassLoader defaultLoader)
负载从一个代码库的URL路径的一个类,可以使用提供的装载机。
|
abstract 类<?> |
RMIClassLoaderSpi.loadClass(String codebase, String name, ClassLoader defaultLoader)
|
static 类<?> |
RMIClassLoader.loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader)
加载一个动态代理类(见
Proxy )实现一组接口与给定的从一个代码库的URL路径名。
|
abstract 类<?> |
RMIClassLoaderSpi.loadProxyClass(String codebase, String[] interfaces, ClassLoader defaultLoader)
|
Modifier and Type | Class and Description |
---|---|
class |
SecureClassLoader
这类扩展为类定义一个相关的源代码和权限是由系统默认的类加载器检索额外的支持政策。
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
ProtectionDomain.getClassLoader()
返回该域的类加载器。
|
Constructor and Description |
---|
ProtectionDomain(CodeSource codesource, PermissionCollection permissions, ClassLoader classloader, Principal[] principals)
创建一个新的保护范围由给定代码资源,合格的权限,ClassLoader和阵列的校长。
|
SecureClassLoader(ClassLoader parent)
创建一个使用指定的父类装载器为代表的新secureclassloader。
|
Modifier and Type | Method and Description |
---|---|
static void |
ResourceBundle.clearCache(ClassLoader loader)
从给定的类加载程序中删除已加载的缓存中的所有资源包。
|
static ResourceBundle |
ResourceBundle.getBundle(String baseName, Locale locale, ClassLoader loader)
使用指定的基名称、区域设置和类加载程序获取资源包。
|
static ResourceBundle |
ResourceBundle.getBundle(String baseName, Locale targetLocale, ClassLoader loader, ResourceBundle.Control control)
使用指定的基名称、目标区域设置、类装载器和控件返回一个资源包。
|
static <S> ServiceLoader<S> |
ServiceLoader.load(类<S> service, ClassLoader loader)
为给定的服务类型和类装载器创建一个新的服务装载器。
|
boolean |
ResourceBundle.Control.needsReload(String baseName, Locale locale, String format, ClassLoader loader, ResourceBundle bundle, long loadTime)
确定是否过期
bundle 缓存中需要重新加载基于加载时间
loadTime 或其他标准。
|
ResourceBundle |
ResourceBundle.Control.newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload)
实例化一个给定的给定的格式和现场束名称资源束,使用给定的类装载器,如果有必要的话。
|
Modifier and Type | Method and Description |
---|---|
Object |
CommandInfo.getCommandObject(DataHandler dh, ClassLoader loader)
返回实例化JavaBean组件。
|
Modifier and Type | Method and Description |
---|---|
static <T> Iterator<T> |
ServiceRegistry.lookupProviders(类<T> providerClass, ClassLoader loader)
使用给定类装入器搜索特定服务类的实现。
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
MBeanServer.getClassLoader(ObjectName loaderName)
返回指定的
ClassLoader 。
|
ClassLoader |
MBeanServer.getClassLoaderFor(ObjectName mbeanName)
返回
ClassLoader ,用于加载的名叫MBean的课。
|
Modifier and Type | Method and Description |
---|---|
static 类<?> |
DefaultLoaderRepository.loadClassWithout(ClassLoader loader, String className)
过时的。
通过类装载器的列表,但排除给定的类装入器,然后尝试加载所请求的类。
|
Modifier and Type | Class and Description |
---|---|
class |
MLet
可以实例化和从远程URL来登记的MBean服务器的一个或几个MBeans。
|
class |
PrivateMLet
一种熔体不添加到
ClassLoaderRepository 。
|
Modifier and Type | Method and Description |
---|---|
类<?> |
ClassLoaderRepository.loadClassBefore(ClassLoader stop, String className)
通过类装载器的列表加载给定的类名称,在给定的一个给定的类名称。
|
static 类<?> |
DefaultLoaderRepository.loadClassWithout(ClassLoader loader, String className)
过时的。
通过类装载器的列表,但排除给定的类装入器,然后尝试加载所请求的类。
|
类<?> |
ClassLoaderRepository.loadClassWithout(ClassLoader exclude, String className)
通过将给定的类名称加载到类装入器的列表中,不包括给定的类名称。
|
Constructor and Description |
---|
MLet(URL[] urls, ClassLoader parent)
构建了一种新的熔体为给定的URL。
|
MLet(URL[] urls, ClassLoader parent, boolean delegateToCLR)
构建了一种新的熔体为给定的URL。
|
MLet(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory)
构建了一种新的熔体为指定的URL,父类装载器,并urlstreamhandlerfactory。
|
MLet(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory, boolean delegateToCLR)
构建了一种新的熔体为指定的URL,父类装载器,并urlstreamhandlerfactory。
|
PrivateMLet(URL[] urls, ClassLoader parent, boolean delegateToCLR)
构建新的privatemlet给定的URL。
|
PrivateMLet(URL[] urls, ClassLoader parent, URLStreamHandlerFactory factory, boolean delegateToCLR)
为指定的URL构造一个新的privatemlet,父类装载器,并urlstreamhandlerfactory。
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
RMIServerImpl.getDefaultClassLoader()
获取默认
ClassLoader 通过此连接器服务器使用。
|
Modifier and Type | Method and Description |
---|---|
void |
RMIServerImpl.setDefaultClassLoader(ClassLoader cl)
设置此服务器的默认
ClassLoader 连接器。
|
Constructor and Description |
---|
RMIConnectionImpl(RMIServerImpl rmiServer, String connectionId, ClassLoader defaultClassLoader, Subject subject, Map<String,?> env)
构建了一种新的
RMIConnection 。
|
Modifier and Type | Method and Description |
---|---|
static 类 |
Util.loadClass(String className, String remoteCodebase, ClassLoader loader)
返回指定类的一个类实例。
|
类 |
UtilDelegate.loadClass(String className, String remoteCodebase, ClassLoader loader)
|
Constructor and Description |
---|
ScriptEngineManager(ClassLoader loader)
此构造函数加载
ScriptEngineFactory 可见实现给定的
ClassLoader 使用
service provider mechanism.
如果装载机是 null ,是捆绑在一起的平台,在平时的扩展目录脚本引擎工厂(已安装的扩展)加载。
|
Modifier and Type | Method and Description |
---|---|
static RowSetFactory |
RowSetProvider.newFactory(String factoryClassName, ClassLoader cl)
创建从指定的工厂类的新实例的名称
RowSetFactory 。
|
Modifier and Type | Method and Description |
---|---|
类<? extends ComponentUI> |
UIDefaults.getUIClass(String uiClassID, ClassLoader uiClassLoader)
get(uidClassID) 的值必须是一个类,实现了相应的
ComponentUI 班
String 名称。
|
static void |
JEditorPane.registerEditorKitForContentType(String type, String classname, ClassLoader loader)
建立了
type 到
classname 默认绑定。
|
Modifier and Type | Method and Description |
---|---|
ClassLoader |
JavaFileManager.getClassLoader(JavaFileManager.Location location)
从给定的位置获取加载插件的类加载程序。
|
ClassLoader |
ForwardingJavaFileManager.getClassLoader(JavaFileManager.Location location) |
static ClassLoader |
ToolProvider.getSystemToolClassLoader()
返回为该平台提供的工具的类装载器。
|
Modifier and Type | Method and Description |
---|---|
static JAXBContext |
JAXBContext.newInstance(String contextPath, ClassLoader classLoader)
获得一个
JAXBContext类的一个新实例。
|
static JAXBContext |
JAXBContext.newInstance(String contextPath, ClassLoader classLoader, Map<String,?> properties)
获得一个
JAXBContext类的一个新实例。
|
Modifier and Type | Method and Description |
---|---|
static DatatypeFactory |
DatatypeFactory.newInstance(String factoryClassName, ClassLoader classLoader)
从中获得的一个新实例类的名称
DatatypeFactory 。
|
Modifier and Type | Method and Description |
---|---|
static DocumentBuilderFactory |
DocumentBuilderFactory.newInstance(String factoryClassName, ClassLoader classLoader)
从中获得的一个新实例类的名称
DocumentBuilderFactory 。
|
static SAXParserFactory |
SAXParserFactory.newInstance(String factoryClassName, ClassLoader classLoader)
从中获得的一个新实例类的名称
SAXParserFactory 。
|
Modifier and Type | Method and Description |
---|---|
static XMLEventFactory |
XMLEventFactory.newFactory(String factoryId, ClassLoader classLoader)
创建工厂的一个新实例。
|
static XMLOutputFactory |
XMLOutputFactory.newFactory(String factoryId, ClassLoader classLoader)
创建工厂的一个新实例。
|
static XMLInputFactory |
XMLInputFactory.newFactory(String factoryId, ClassLoader classLoader)
创建工厂的一个新实例。
|
static XMLEventFactory |
XMLEventFactory.newInstance(String factoryId, ClassLoader classLoader)
过时的。
此方法已被否决保持API的一致性。所有的newInstance方法已经有相应的新工厂方法所取代。更换
XMLEventFactory.newFactory(java.lang.String, java.lang.ClassLoader) 方法定义在行为上没有变化。
|
static XMLInputFactory |
XMLOutputFactory.newInstance(String factoryId, ClassLoader classLoader)
过时的。
此方法已被否决因为它返回XMLInputFactory实例,这是错误的类。使用新的方法
XMLOutputFactory.newFactory(java.lang.String, java.lang.ClassLoader) 相反。
|
static XMLInputFactory |
XMLInputFactory.newInstance(String factoryId, ClassLoader classLoader)
过时的。
此方法已被否决保持API的一致性。所有的newInstance方法已经有相应的新工厂方法所取代。更换
XMLInputFactory.newFactory(java.lang.String, java.lang.ClassLoader) 方法定义在行为上没有变化。
|
Modifier and Type | Method and Description |
---|---|
static TransformerFactory |
TransformerFactory.newInstance(String factoryClassName, ClassLoader classLoader)
获得从工厂类的新实例的名称
TransformerFactory 。
|
Modifier and Type | Method and Description |
---|---|
static SchemaFactory |
SchemaFactory.newInstance(String schemaLanguage, String factoryClassName, ClassLoader classLoader)
从中获得的一个新实例类的名称
SchemaFactory 。
|
Modifier and Type | Method and Description |
---|---|
static XPathFactory |
XPathFactory.newInstance(String uri, String factoryClassName, ClassLoader classLoader)
从一个工厂类的名字获得一个
XPathFactory 新实例。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.