org.jacoco.agent
Class AgentJar

java.lang.Object
  extended by org.jacoco.agent.AgentJar

public class AgentJar
extends Object

API to access the agent JAR file as a resource.

Version:
$Revision: $
Author:
Marc R. Hoffmann

Field Summary
static String RESOURCE
          Name of the agent JAR file resource within this bunde.
 
Method Summary
static URL getResource()
          Returns a URL pointing to the JAR file.
static InputStream getResourceAsStream()
          Returns the content of the JAR file as a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

public static final String RESOURCE
Name of the agent JAR file resource within this bunde.

See Also:
Constant Field Values
Method Detail

getResource

public static URL getResource()
Returns a URL pointing to the JAR file.

Returns:
URL of the JAR file

getResourceAsStream

public static InputStream getResourceAsStream()
Returns the content of the JAR file as a stream.

Returns:
content of the JAR file