Package org.smallmind.nutsnbolts.lang
Class ClasspathClassGate
- java.lang.Object
-
- org.smallmind.nutsnbolts.lang.ClasspathClassGate
-
- All Implemented Interfaces:
ClassGate
- Direct Known Subclasses:
SecureClasspathClassGate
public class ClasspathClassGate extends Object implements ClassGate
-
-
Field Summary
-
Fields inherited from interface org.smallmind.nutsnbolts.lang.ClassGate
STATIC_CLASS
-
-
Constructor Summary
Constructors Constructor Description ClasspathClassGate()ClasspathClassGate(String classPath)ClasspathClassGate(String... pathComponents)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CodeSourcegetCodeSource()longgetLastModDate(String name)URLgetResource(String path)InputStreamgetResourceAsStream(String path)ClassStreamTicketgetTicket(String name)
-
-
-
Method Detail
-
getLastModDate
public long getLastModDate(String name) throws IOException
- Specified by:
getLastModDatein interfaceClassGate- Throws:
IOException
-
getCodeSource
public CodeSource getCodeSource()
- Specified by:
getCodeSourcein interfaceClassGate
-
getTicket
public ClassStreamTicket getTicket(String name) throws Exception
-
getResource
public URL getResource(String path) throws Exception
- Specified by:
getResourcein interfaceClassGate- Throws:
Exception
-
getResourceAsStream
public InputStream getResourceAsStream(String path) throws Exception
- Specified by:
getResourceAsStreamin interfaceClassGate- Throws:
Exception
-
-