Skip navigation links
A C D E F G H I J L M N P R S T W 

A

accessible(T) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
actualCapsuleClass(Class<?>) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
addClass(Class<?>) - Method in class co.paralleluniverse.capsule.Jar
Adds a class entry to this JAR.
addEntries(Path, Path, Jar.Filter) - Method in class co.paralleluniverse.capsule.Jar
Adds a directory (with all its subdirectories) or the contents of a zip/JAR to this JAR.
addEntries(Path, Path) - Method in class co.paralleluniverse.capsule.Jar
Adds a directory (with all its subdirectories) or the contents of a zip/JAR to this JAR.
addEntries(String, Path, Jar.Filter) - Method in class co.paralleluniverse.capsule.Jar
Adds a directory (with all its subdirectories) or the contents of a zip/JAR to this JAR.
addEntries(String, Path) - Method in class co.paralleluniverse.capsule.Jar
Adds a directory (with all its subdirectories) or the contents of a zip/JAR to this JAR.
addEntries(Path, ZipInputStream) - Method in class co.paralleluniverse.capsule.Jar
Adds the contents of the zip/JAR contained in the given byte array to this JAR.
addEntries(Path, ZipInputStream, Jar.Filter) - Method in class co.paralleluniverse.capsule.Jar
Adds the contents of the zip/JAR contained in the given byte array to this JAR.
addEntry(String, InputStream) - Method in class co.paralleluniverse.capsule.Jar
Adds an entry to this JAR.
addEntry(String, byte[]) - Method in class co.paralleluniverse.capsule.Jar
Adds an entry to this JAR.
addEntry(Path, InputStream) - Method in class co.paralleluniverse.capsule.Jar
Adds an entry to this JAR.
addEntry(Path, Path) - Method in class co.paralleluniverse.capsule.Jar
Adds an entry to this JAR.
addEntry(Path, String) - Method in class co.paralleluniverse.capsule.Jar
Adds an entry to this JAR.
addEntry(String, File) - Method in class co.paralleluniverse.capsule.Jar
Adds an entry to this JAR.
addEntry(String, String) - Method in class co.paralleluniverse.capsule.Jar
Adds an entry to this JAR.
addPackageOf(Class<?>) - Method in class co.paralleluniverse.capsule.Jar
Adds the contents of a Java package to this JAR.
addPackageOf(Class<?>, Jar.Filter) - Method in class co.paralleluniverse.capsule.Jar
Adds the contents of a Java package to this JAR.
Attribute<T> - Class in co.paralleluniverse.capsule
 

C

Capsule - Interface in co.paralleluniverse.capsule
A capsule.
CapsuleLauncher - Class in co.paralleluniverse.capsule
Provides methods for loading, inspecting, and launching capsules.
CapsuleLauncher(Path) - Constructor for class co.paralleluniverse.capsule.CapsuleLauncher
 
CapsuleTestUtils - Class in co.paralleluniverse.capsule.test
 
CapsuleTestUtils.StringPrintStream - Class in co.paralleluniverse.capsule.test
 
CapsuleUtils - Class in co.paralleluniverse.capsule
A utility class that can be used by code launched in a capsule to interact with the capsule.
close() - Method in class co.paralleluniverse.capsule.Jar
 
co.paralleluniverse.capsule - package co.paralleluniverse.capsule
Contains classes to interact with capsules: CapsuleUtils lets an application running in a capsule obtain information from the capsule. Jar allows simple, programmatic creation of JAR file/streams, and can be used by a server that generates customized capsules. CapsuleLauncher launched capsules programmatically, and is used by capsule containers.
co.paralleluniverse.capsule.test - package co.paralleluniverse.capsule.test
 

D

DEVNULL - Static variable in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 

E

enableJMX(List<String>) - Static method in class co.paralleluniverse.capsule.CapsuleLauncher
Adds an option to the JVM arguments to enable JMX connection

F

filter(String) - Method in interface co.paralleluniverse.capsule.Jar.Filter
 
findJavaHomes() - Static method in class co.paralleluniverse.capsule.CapsuleLauncher
Returns all known Java installations

G

getAppId() - Method in interface co.paralleluniverse.capsule.Capsule
Returns a capsule's ID..
getAppId() - Static method in class co.paralleluniverse.capsule.CapsuleUtils
Returns this capsule's app ID.
getAttribute(Attribute<T>) - Method in interface co.paralleluniverse.capsule.Capsule
Returns the value of the given manifest attribute with consideration to the capsule's mode.
getAttribute(String) - Method in class co.paralleluniverse.capsule.Jar
Returns an attribute's value from this JAR's manifest's main section.
getAttribute(String, String) - Method in class co.paralleluniverse.capsule.Jar
Returns an attribute's value from a non-main section of this JAR's manifest.
getCapsuleAppDir() - Static method in class co.paralleluniverse.capsule.CapsuleUtils
Returns the full path to the capsule's app cache directory.
getCapsuleJar() - Static method in class co.paralleluniverse.capsule.CapsuleUtils
Returns the full path to the capsule's JAR.
getListAttribute(String) - Method in class co.paralleluniverse.capsule.Jar
Returns an attribute's list value from this JAR's manifest's main section.
getListAttribute(String, String) - Method in class co.paralleluniverse.capsule.Jar
Returns an attribute's list value from a non-main section of this JAR's manifest.
getManifest() - Method in class co.paralleluniverse.capsule.Jar
Returns the manifest of this JAR.
getMapAttribute(String, String) - Method in class co.paralleluniverse.capsule.Jar
Returns an attribute's map value from this JAR's manifest's main section.
getMapAttribute(String, String, String) - Method in class co.paralleluniverse.capsule.Jar
Returns an attribute's map value from a non-main section of this JAR's manifest.
getModes() - Method in interface co.paralleluniverse.capsule.Capsule
Returns the capsule's supported modes.
getProperties() - Method in interface co.paralleluniverse.capsule.Capsule
The properties used by the capsule.
getVersion() - Method in interface co.paralleluniverse.capsule.Capsule
Returns the capsule's version.

H

hasAttribute(Attribute<?>) - Method in interface co.paralleluniverse.capsule.Capsule
Tests whether the given attribute is found in the manifest.
hasCaplet(String) - Method in interface co.paralleluniverse.capsule.Capsule
Checks whether a caplet with the given class name is installed.

I

isCI() - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
isRunningInCapsule() - Static method in class co.paralleluniverse.capsule.CapsuleUtils
Tests if we're running in a capsule.

J

Jar - Class in co.paralleluniverse.capsule
A JAR file that can be easily modified.
Jar() - Constructor for class co.paralleluniverse.capsule.Jar
Creates a new, empty, JAR
Jar(InputStream) - Constructor for class co.paralleluniverse.capsule.Jar
Reads in the JAR from the given InputStream.
Jar(Path) - Constructor for class co.paralleluniverse.capsule.Jar
Reads in the JAR from the given Path.
Jar(File) - Constructor for class co.paralleluniverse.capsule.Jar
Reads in the JAR from the given File.
Jar(String) - Constructor for class co.paralleluniverse.capsule.Jar
Reads in the JAR from the given path.
Jar(Jar) - Constructor for class co.paralleluniverse.capsule.Jar
Creates a copy
Jar.Filter - Interface in co.paralleluniverse.capsule
 

L

loadCapsule(Jar, Path) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 

M

matches(String) - Static method in class co.paralleluniverse.capsule.Jar
 

N

named(String) - Static method in class co.paralleluniverse.capsule.Attribute
 
newCapsule() - Method in class co.paralleluniverse.capsule.CapsuleLauncher
Creates a new capsule.
newCapsule(String) - Method in class co.paralleluniverse.capsule.CapsuleLauncher
Creates a new capsule
newCapsule(Path) - Method in class co.paralleluniverse.capsule.CapsuleLauncher
Creates a new capsule
newCapsule(String, Path) - Method in class co.paralleluniverse.capsule.CapsuleLauncher
Creates a new capsule
newCapsule(Jar, Path) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
newCapsule(Class<?>, Path) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
notMatches(String) - Static method in class co.paralleluniverse.capsule.Jar
 

P

prepareForLaunch(List<String>, List<String>) - Method in interface co.paralleluniverse.capsule.Capsule
Creates a ProcessBuilder ready to use for launching the capsule.

R

resetOutputStreams(Class<?>) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
resetOutputStreams() - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
rethrow(Throwable) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 

S

setAttribute(String, String) - Method in class co.paralleluniverse.capsule.Jar
Sets an attribute in the main section of the manifest.
setAttribute(String, String, String) - Method in class co.paralleluniverse.capsule.Jar
Sets an attribute in a non-main section of the manifest.
setCacheDir(Path) - Method in class co.paralleluniverse.capsule.CapsuleLauncher
Sets the location of the cache directory for the capsules created by newCapsule
setCacheDir(Class<?>, Path) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
setCacheDir(Path) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
setJarPrefix(String) - Method in class co.paralleluniverse.capsule.Jar
Sets a string that will be prepended to the JAR file's data.
setJarPrefix(Path) - Method in class co.paralleluniverse.capsule.Jar
Sets a file whose contents will be prepended to the JAR file's data.
setJavaHomes(Map<String, List<Path>>) - Method in class co.paralleluniverse.capsule.CapsuleLauncher
Sets the Java homes that will be used by the capsules created by newCapsule.
setListAttribute(String, Collection<?>) - Method in class co.paralleluniverse.capsule.Jar
Sets an attribute in the main section of the manifest to a list.
setListAttribute(String, String, Collection<?>) - Method in class co.paralleluniverse.capsule.Jar
Sets an attribute in a non-main section of the manifest to a list.
setMapAttribute(String, Map<String, ?>) - Method in class co.paralleluniverse.capsule.Jar
Sets an attribute in the main section of the manifest to a map.
setMapAttribute(String, String, Map<String, ?>) - Method in class co.paralleluniverse.capsule.Jar
Sets an attribute in a non-main section of the manifest to a map.
setOutput(Path) - Method in class co.paralleluniverse.capsule.Jar
setOutput(File) - Method in class co.paralleluniverse.capsule.Jar
setOutputStream(OutputStream) - Method in class co.paralleluniverse.capsule.Jar
Sets an OutputStream to which the JAR will be written.
setPacker(Pack200.Packer) - Method in class co.paralleluniverse.capsule.Jar
Sets a Pack200 packer to use when writing the JAR.
setProperties(Properties) - Method in class co.paralleluniverse.capsule.CapsuleLauncher
Sets the properties for the capsules created by newCapsule
setProperties(Class<?>, Properties) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
setProperties(Properties) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
setProperty(String, String) - Method in class co.paralleluniverse.capsule.CapsuleLauncher
Sets a property for the capsules created by newCapsule
setReallyExecutable(boolean) - Method in class co.paralleluniverse.capsule.Jar
If set to true true, a header will be added to the JAR file when written, that will make the JAR an executable file in POSIX environments.
setSTDERR(Class<?>, T) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
setSTDERR(T) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
setSTDOUT(Class<?>, T) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
setSTDOUT(T) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
setStream(Class<?>, String, PrintStream) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
setStream(String, PrintStream) - Static method in class co.paralleluniverse.capsule.test.CapsuleTestUtils
 
StringPrintStream() - Constructor for class co.paralleluniverse.capsule.test.CapsuleTestUtils.StringPrintStream
 

T

toByteArray() - Method in class co.paralleluniverse.capsule.Jar
Returns this JAR file as an array of bytes.
toInputStream(String, Charset) - Static method in class co.paralleluniverse.capsule.Jar
Turns a String into an InputStream containing the string's encoded characters.
toReader() - Method in class co.paralleluniverse.capsule.test.CapsuleTestUtils.StringPrintStream
 
toString() - Method in class co.paralleluniverse.capsule.Attribute
 
toString() - Method in class co.paralleluniverse.capsule.test.CapsuleTestUtils.StringPrintStream
 

W

write(T) - Method in class co.paralleluniverse.capsule.Jar
Writes this JAR to an output stream, and closes the stream.
write(File) - Method in class co.paralleluniverse.capsule.Jar
Writes this JAR to a file.
write(Path) - Method in class co.paralleluniverse.capsule.Jar
Writes this JAR to a file.
write(String) - Method in class co.paralleluniverse.capsule.Jar
Writes this JAR to a file.
A C D E F G H I J L M N P R S T W 
Skip navigation links