A B C D E F G H I M N O P R S 

A

AbstractInputStreamConsumer - Class in org.imca_cat.procrun
An abstract class for implementing input stream consumers.
AbstractInputStreamConsumer(InputStream) - Constructor for class org.imca_cat.procrun.AbstractInputStreamConsumer
Creates an instance with the specified stream.

B

buffer - Variable in class org.imca_cat.procrun.BufferInputStreamConsumer
The buffer into which data is read from the stream.
BufferInputStreamConsumer - Class in org.imca_cat.procrun
An abstract class for consumers that read data from an InputStream into a buffer.
BufferInputStreamConsumer(InputStream, int) - Constructor for class org.imca_cat.procrun.BufferInputStreamConsumer
Creates an instance with the specified stream and buffer size.
bufferPosition - Variable in class org.imca_cat.procrun.BufferInputStreamConsumer
The current position within the buffer.

C

call() - Method in class org.imca_cat.procrun.AbstractInputStreamConsumer
call() - Method in class org.imca_cat.procrun.ProcessRunner
Runs the process.
cancel() - Method in class org.imca_cat.procrun.AbstractInputStreamConsumer
Stops this consumer by closing the input stream.
cancel() - Method in interface org.imca_cat.procrun.CancelableCallable
Requests that this task stop.
CancelableCallable<V> - Interface in org.imca_cat.procrun
A Callable that is cancelable.
CancelableExecutor - Class in org.imca_cat.procrun
A ThreadPoolExecutor that returns Future instances that, when canceled, will invoke CancelableCallable.cancel() if the submitted Callable is a CancelableCallable.
CancelableExecutor(int) - Constructor for class org.imca_cat.procrun.CancelableExecutor
Creates a fixed size thread pool with the specified number of threads and a shared unbounded queue.
CancelableExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>) - Constructor for class org.imca_cat.procrun.CancelableExecutor
Creates an instance by invoking the super constructor with the specified arguments.
CancelableExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory) - Constructor for class org.imca_cat.procrun.CancelableExecutor
Creates an instance by invoking the super constructor with the specified arguments.
CancelableExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, RejectedExecutionHandler) - Constructor for class org.imca_cat.procrun.CancelableExecutor
Creates an instance by invoking the super constructor with the specified arguments.
CancelableExecutor(int, int, long, TimeUnit, BlockingQueue<Runnable>, ThreadFactory, RejectedExecutionHandler) - Constructor for class org.imca_cat.procrun.CancelableExecutor
Creates an instance by invoking the super constructor with the specified arguments.

D

data() - Method in class org.imca_cat.procrun.AbstractInputStreamConsumer
Returns the data consumed from the input stream.
data() - Method in class org.imca_cat.procrun.BufferInputStreamConsumer
 
data() - Method in class org.imca_cat.procrun.DiscardingInputStreamConsumer
 
DEFAULT_BUFFER_SIZE - Static variable in class org.imca_cat.procrun.GrowingBufferInputStreamConsumer
Default initial buffer size in bytes.
DiscardingInputStreamConsumer - Class in org.imca_cat.procrun
Reads an InputStream, discarding what is read as it goes, until it encounters the end of the stream or an exception is thrown.
DiscardingInputStreamConsumer(InputStream, int) - Constructor for class org.imca_cat.procrun.DiscardingInputStreamConsumer
Creates an instance with the specified stream and buffer size.

E

exception() - Method in class org.imca_cat.procrun.ProcessRunnerResult
Returns the exception.
exitStatus() - Method in class org.imca_cat.procrun.ProcessRunnerResult
Returns the exit status.

F

FixedSizeBufferInputStreamConsumer - Class in org.imca_cat.procrun
Reads an InputStream, placing what is read into a fixed-size buffer, until it encounters the end of the stream or an exception is thrown.
FixedSizeBufferInputStreamConsumer(InputStream, int) - Constructor for class org.imca_cat.procrun.FixedSizeBufferInputStreamConsumer
Creates an instance with the specified stream and buffer size.

G

GrowingBufferInputStreamConsumer - Class in org.imca_cat.procrun
Reads an InputStream, placing what is read into an automatically growing buffer, until it encounters the end of the stream or an exception is thrown.
GrowingBufferInputStreamConsumer(InputStream) - Constructor for class org.imca_cat.procrun.GrowingBufferInputStreamConsumer
Creates an instance with the specified stream and with an initial buffer size of 32 bytes.
GrowingBufferInputStreamConsumer(InputStream, int) - Constructor for class org.imca_cat.procrun.GrowingBufferInputStreamConsumer
Creates an instance with the specified stream and buffer size.

H

hasException() - Method in class org.imca_cat.procrun.ProcessRunnerResult
Tests whether this has an exception.
hasExitStatus() - Method in class org.imca_cat.procrun.ProcessRunnerResult
Tests whether this has an exit status.
hasStderr() - Method in class org.imca_cat.procrun.ProcessRunnerResult
Tests whether this has standard-error data.
hasStdout() - Method in class org.imca_cat.procrun.ProcessRunnerResult
Tests whether this has standard-output data.

I

InputStreamConsumer - Interface in org.imca_cat.procrun
Consumes data from an InputStream.
InputStreamConsumerFactory - Interface in org.imca_cat.procrun
Factory that creates InputStreamConsumer instances.

M

MAJOR_VERSION - Static variable in class org.imca_cat.procrun.ProcrunSystem
Major version number.
MINOR_VERSION - Static variable in class org.imca_cat.procrun.ProcrunSystem
Minor version number.

N

newConsumer(InputStream) - Method in interface org.imca_cat.procrun.InputStreamConsumerFactory
Creates a new consumer on the specified input stream.
newFactory(int) - Static method in class org.imca_cat.procrun.DiscardingInputStreamConsumer
Creates a factory that returns a new instance of this class with the specified buffer size.
newFactory(int) - Static method in class org.imca_cat.procrun.FixedSizeBufferInputStreamConsumer
Creates a factory that returns a new instance of this class with the specified buffer size.
newFactory() - Static method in class org.imca_cat.procrun.GrowingBufferInputStreamConsumer
Creates a factory that returns a new instance of this class with the default initial buffer size.
newFactory(int) - Static method in class org.imca_cat.procrun.GrowingBufferInputStreamConsumer
Creates a factory that returns a new instance of this class with the specified initial buffer size.
newTaskFor(Callable<T>) - Method in class org.imca_cat.procrun.CancelableExecutor
 

O

org.imca_cat.procrun - package org.imca_cat.procrun
Contains all the Procrun classes.

P

PATCH_VERSION - Static variable in class org.imca_cat.procrun.ProcrunSystem
Patch level version number.
postProcessData() - Method in class org.imca_cat.procrun.AbstractInputStreamConsumer
Performs post-processing of data.
postProcessData() - Method in class org.imca_cat.procrun.FixedSizeBufferInputStreamConsumer
 
ProcessRunner - Class in org.imca_cat.procrun
Runs an operating system process and consumes data written to its standard output and standard error streams.
ProcessRunner(ProcessBuilder) - Constructor for class org.imca_cat.procrun.ProcessRunner
Creates an instance with the specified builder and the default standard-output and standard-error consumer factories that create GrowingBufferInputStreamConsumer instances.
ProcessRunner(ProcessBuilder, InputStreamConsumerFactory) - Constructor for class org.imca_cat.procrun.ProcessRunner
Creates an instance with the specified builder and standard-output consumer factory and the default standard-error consumer factory that creates GrowingBufferInputStreamConsumer instances.
ProcessRunner(ProcessBuilder, InputStreamConsumerFactory, InputStreamConsumerFactory) - Constructor for class org.imca_cat.procrun.ProcessRunner
Creates an instance with the specified builder, standard-output consumer factory, and standard-error consumer factory.
ProcessRunnerResult - Class in org.imca_cat.procrun
The result of running a ProcessRunner.
ProcessRunnerResult(Integer, Throwable, ByteBuffer, ByteBuffer) - Constructor for class org.imca_cat.procrun.ProcessRunnerResult
Creates an instance with the specified exit status, exception, standard output data, and standard error data.
ProcrunSystem - Class in org.imca_cat.procrun
The system class for the Procrun library.

R

read() - Method in class org.imca_cat.procrun.AbstractInputStreamConsumer
Reads a chunk of data from the input stream.
read() - Method in class org.imca_cat.procrun.DiscardingInputStreamConsumer
 
read() - Method in class org.imca_cat.procrun.FixedSizeBufferInputStreamConsumer
 
read() - Method in class org.imca_cat.procrun.GrowingBufferInputStreamConsumer
 
run(ProcessBuilder) - Static method in class org.imca_cat.procrun.ProcessRunner
Creates and runs a ProcessRunner with the specified builder, and with the default standard-output consumer and standard-error consumer.
run(ProcessBuilder, InputStreamConsumerFactory) - Static method in class org.imca_cat.procrun.ProcessRunner
Creates and runs a ProcessRunner with the specified builder and standard-output consumer, and with the default standard-error consumer.
run(ProcessBuilder, InputStreamConsumerFactory, InputStreamConsumerFactory) - Static method in class org.imca_cat.procrun.ProcessRunner
Creates and runs a ProcessRunner with the specified builder, standard-output consumer, and standard-error consumer.
run(ProcessBuilder, InputStreamConsumerFactory, InputStreamConsumerFactory, long, TimeUnit) - Static method in class org.imca_cat.procrun.ProcessRunner
Creates and runs a ProcessRunner with the specified builder, standard-output consumer, standard-error consumer, and timeout.

S

stderr() - Method in class org.imca_cat.procrun.ProcessRunnerResult
Returns the standard-error data.
stderrString() - Method in class org.imca_cat.procrun.ProcessRunnerResult
Returns the standard-error data as a string decoded using the default character set.
stderrString(Charset) - Method in class org.imca_cat.procrun.ProcessRunnerResult
Returns the standard-error data as a string decoded using the specified character set.
stdout() - Method in class org.imca_cat.procrun.ProcessRunnerResult
Returns the standard-output data.
stdoutString() - Method in class org.imca_cat.procrun.ProcessRunnerResult
Returns the standard-output data as a string decoded using the default character set.
stdoutString(Charset) - Method in class org.imca_cat.procrun.ProcessRunnerResult
Returns the standard-output data as a string decoded using the specified character set.
stream - Variable in class org.imca_cat.procrun.AbstractInputStreamConsumer
The stream to read.
A B C D E F G H I M N O P R S