public class JarLoader extends java.security.SecureClassLoader
Constructor and Description |
---|
JarLoader(java.lang.ClassLoader parent)
Creates a new class loader that is specialized for loading jar files.
|
Modifier and Type | Method and Description |
---|---|
protected void |
checkPackageAccess(java.lang.String name)
Checks package access
|
protected java.lang.Class<?> |
findClass(java.lang.String name) |
java.lang.Class<?> |
getClass(java.lang.String classname)
Returns the Class object for the class with the specified name.
|
boolean |
readJarFile(java.net.URL jarUrl)
Loads the content of a jar file that comply with a MaltParser Plugin
|
java.lang.String |
toString() |
defineClass, defineClass, getPermissions
clearAssertionStatus, defineClass, defineClass, defineClass, defineClass, definePackage, findLibrary, findLoadedClass, findResource, findResources, findSystemClass, getClassLoadingLock, getPackage, getPackages, getParent, getResource, getResourceAsStream, getResources, getSystemClassLoader, getSystemResource, getSystemResourceAsStream, getSystemResources, loadClass, loadClass, registerAsParallelCapable, resolveClass, setClassAssertionStatus, setDefaultAssertionStatus, setPackageAssertionStatus, setSigners
public JarLoader(java.lang.ClassLoader parent)
parent
- The parent class loaderprotected java.lang.Class<?> findClass(java.lang.String name)
findClass
in class java.lang.ClassLoader
public boolean readJarFile(java.net.URL jarUrl) throws MaltChainedException
jarUrl
- The URL to the jar filePluginException
MaltChainedException
public java.lang.Class<?> getClass(java.lang.String classname)
classname
- the fully qualified name of the desired classprotected void checkPackageAccess(java.lang.String name)
name
- the package namepublic java.lang.String toString()
toString
in class java.lang.Object
Copyright 2007-2017 Johan Hall, Jens Nilsson and Joakim Nivre.