Skip navigation links
B C D E H I N O S W 

B

BUFFER_CAPACITY - Static variable in interface com.zaxxer.nuprocess.NuProcess
 

C

closeStdin() - Method in interface com.zaxxer.nuprocess.NuProcess
This method is used to close the STDIN pipe between the Java process and the spawned process.
com.zaxxer.nuprocess - package com.zaxxer.nuprocess
Provides the primary classes and interfaces for executing and interacting with processes in an asynchronous manner.
com.zaxxer.nuprocess.codec - package com.zaxxer.nuprocess.codec
 
command() - Method in class com.zaxxer.nuprocess.NuProcessBuilder
Get the List of commands that were used to construct this NuProcessBuilder.

D

destroy(boolean) - Method in interface com.zaxxer.nuprocess.NuProcess
Terminates the process.

If force is false, the process will be terminated gracefully (i.e.

E

environment() - Method in class com.zaxxer.nuprocess.NuProcessBuilder
Returns a string map view of this process builder's environment.

H

hasPendingWrites() - Method in interface com.zaxxer.nuprocess.NuProcess
This method is most useful in combination with NuProcess.writeStdin(java.nio.ByteBuffer).

I

isRunning() - Method in interface com.zaxxer.nuprocess.NuProcess
Tests whether or not the process is still running or has exited.

N

NuAbstractCharsetHandler - Class in com.zaxxer.nuprocess.codec
Convenience implementation of NuProcessHandler which decodes stdin, stdout, and stderr bytes to and from Java UTF-16 string data using a Charset or separate CharsetDecoder and CharsetEncoders.
NuAbstractProcessHandler - Class in com.zaxxer.nuprocess
Convenience base class for a NuProcessHandler with default methods that can be overridden.
NuAbstractProcessHandler() - Constructor for class com.zaxxer.nuprocess.NuAbstractProcessHandler
 
NuCharsetDecoder - Class in com.zaxxer.nuprocess.codec
Implementation of onStdout(ByteBuffer, boolean) or onStderr(ByteBuffer, boolean) which handles decoding of stdout or stderr bytes to Java UTF-16 string data.
NuCharsetDecoder(NuCharsetDecoderHandler, Charset) - Constructor for class com.zaxxer.nuprocess.codec.NuCharsetDecoder
Creates a decoder which uses a single Charset to decode output data.
NuCharsetDecoder(NuCharsetDecoderHandler, CharsetDecoder) - Constructor for class com.zaxxer.nuprocess.codec.NuCharsetDecoder
Creates a decoder which uses a CharsetDecoders to decode output data.
NuCharsetDecoderHandler - Interface in com.zaxxer.nuprocess.codec
Callbacks invoked by NuCharsetDecoder with decoded string data.
NuCharsetEncoder - Class in com.zaxxer.nuprocess.codec
Implementation of onStdinReady(ByteBuffer) which handles encoding of stdin bytes to Java UTF-16 string data.
NuCharsetEncoder(NuCharsetEncoderHandler, Charset) - Constructor for class com.zaxxer.nuprocess.codec.NuCharsetEncoder
Creates an encoder which uses a single Charset to encode input data.
NuCharsetEncoder(NuCharsetEncoderHandler, CharsetEncoder) - Constructor for class com.zaxxer.nuprocess.codec.NuCharsetEncoder
Creates an encoder which uses a CharsetEncoder to encode input data.
NuCharsetEncoderHandler - Interface in com.zaxxer.nuprocess.codec
Callbacks invoked by NuCharsetEncoder with decoded string data.
NuProcess - Interface in com.zaxxer.nuprocess
The NuProcessBuilder.start() method creates a native process and returns an instance of a platform-specific implementation of NuProcess that can be used to control the process and obtain information about it.
NuProcessBuilder - Class in com.zaxxer.nuprocess
This class is used to create operating system processes.
NuProcessBuilder(List<String>, Map<String, String>) - Constructor for class com.zaxxer.nuprocess.NuProcessBuilder
Constructs a process builder with the specified operating system program and arguments.
NuProcessBuilder(List<String>) - Constructor for class com.zaxxer.nuprocess.NuProcessBuilder
Constructs a process builder with the specified operating system program and arguments.
NuProcessBuilder(String...) - Constructor for class com.zaxxer.nuprocess.NuProcessBuilder
Constructs a process builder with the specified operating system program and arguments.
NuProcessBuilder(NuProcessHandler, String...) - Constructor for class com.zaxxer.nuprocess.NuProcessBuilder
Constructs a process builder with the specified NuProcessHandler and operating system program and arguments.
NuProcessBuilder(NuProcessHandler, List<String>) - Constructor for class com.zaxxer.nuprocess.NuProcessBuilder
Constructs a process builder with the specified NuProcessHandler and operating system program and arguments.
NuProcessHandler - Interface in com.zaxxer.nuprocess
Executors of a NuProcess must provide an implementation of this class to the ProcessBuilder prior to calling ProcessBuilder.start() .

O

onDecode(CharBuffer, boolean, CoderResult) - Method in interface com.zaxxer.nuprocess.codec.NuCharsetDecoderHandler
This method is invoked when there is decoded data to process or an the end-of-file (EOF) condition has been reached.
onEncoderError(CoderResult) - Method in interface com.zaxxer.nuprocess.codec.NuCharsetEncoderHandler
This method is invoked immediately after NuCharsetEncoderHandler.onStdinReady(CharBuffer) returns if encoding the CharBuffer to bytes fails.
onExit(int) - Method in class com.zaxxer.nuprocess.codec.NuAbstractCharsetHandler
This method is invoked when the process exits.
onExit(int) - Method in class com.zaxxer.nuprocess.NuAbstractProcessHandler
This method is invoked when the process exits.
onExit(int) - Method in interface com.zaxxer.nuprocess.NuProcessHandler
This method is invoked when the process exits.
onOutput(ByteBuffer, boolean) - Method in class com.zaxxer.nuprocess.codec.NuCharsetDecoder
Implementation of onStdout(ByteBuffer, boolean) or onStderr(ByteBuffer, boolean) which decodes output data and forwards it to handler.
onPreStart(NuProcess) - Method in class com.zaxxer.nuprocess.codec.NuAbstractCharsetHandler
This method is invoked when you call the ProcessBuilder.start() method.
onPreStart(NuProcess) - Method in class com.zaxxer.nuprocess.NuAbstractProcessHandler
This method is invoked when you call the ProcessBuilder.start() method.
onPreStart(NuProcess) - Method in interface com.zaxxer.nuprocess.NuProcessHandler
This method is invoked when you call the ProcessBuilder.start() method.
onStart(NuProcess) - Method in class com.zaxxer.nuprocess.codec.NuAbstractCharsetHandler
This method is invoked when you call the ProcessBuilder.start() method.
onStart(NuProcess) - Method in class com.zaxxer.nuprocess.NuAbstractProcessHandler
This method is invoked when you call the ProcessBuilder.start() method.
onStart(NuProcess) - Method in interface com.zaxxer.nuprocess.NuProcessHandler
This method is invoked when you call the ProcessBuilder.start() method.
onStderr(ByteBuffer, boolean) - Method in class com.zaxxer.nuprocess.codec.NuAbstractCharsetHandler
This method is invoked when there is stderr data to process or an the end-of-file (EOF) condition has been reached.
onStderr(ByteBuffer, boolean) - Method in class com.zaxxer.nuprocess.NuAbstractProcessHandler
This method is invoked when there is stderr data to process or an the end-of-file (EOF) condition has been reached.
onStderr(ByteBuffer, boolean) - Method in interface com.zaxxer.nuprocess.NuProcessHandler
This method is invoked when there is stderr data to process or an the end-of-file (EOF) condition has been reached.
onStdinReady(ByteBuffer) - Method in class com.zaxxer.nuprocess.codec.NuAbstractCharsetHandler
This method is invoked after you have expressed a desire to write to stdin by first calling NuProcess.wantWrite().
onStdinReady(ByteBuffer) - Method in class com.zaxxer.nuprocess.codec.NuCharsetEncoder
Implementation of onStdinReady(ByteBuffer) which calls handler with a string buffer then encodes it to bytes and feeds it to the process's stdin.
onStdinReady(CharBuffer) - Method in interface com.zaxxer.nuprocess.codec.NuCharsetEncoderHandler
This method is invoked after you have expressed a desire to write to stdin by first calling NuProcess.wantWrite().
onStdinReady(ByteBuffer) - Method in class com.zaxxer.nuprocess.NuAbstractProcessHandler
This method is invoked after you have expressed a desire to write to stdin by first calling NuProcess.wantWrite().
onStdinReady(ByteBuffer) - Method in interface com.zaxxer.nuprocess.NuProcessHandler
This method is invoked after you have expressed a desire to write to stdin by first calling NuProcess.wantWrite().
onStdout(ByteBuffer, boolean) - Method in class com.zaxxer.nuprocess.codec.NuAbstractCharsetHandler
This method is invoked when there is stdout data to process or an the end-of-file (EOF) condition has been reached.
onStdout(ByteBuffer, boolean) - Method in class com.zaxxer.nuprocess.NuAbstractProcessHandler
This method is invoked when there is stdout data to process or an the end-of-file (EOF) condition has been reached.
onStdout(ByteBuffer, boolean) - Method in interface com.zaxxer.nuprocess.NuProcessHandler
This method is invoked when there is stdout data to process or an the end-of-file (EOF) condition has been reached.

S

setCwd(Path) - Method in class com.zaxxer.nuprocess.NuProcessBuilder
Set the Path to which the current working directory (cwd) of the subsequent launch of a NuProcess will be set when calling the NuProcessBuilder.start() method.
setProcessHandler(NuProcessHandler) - Method in interface com.zaxxer.nuprocess.NuProcess
Sets a new process handler for this NuProcess instance.
setProcessListener(NuProcessHandler) - Method in class com.zaxxer.nuprocess.NuProcessBuilder
Set the NuProcessHandler instance that will be used for the next and subsequent launch of a NuProcess when calling the NuProcessBuilder.start() method.
start() - Method in class com.zaxxer.nuprocess.NuProcessBuilder
Spawn the child process with the configured commands, environment, and NuProcessHandler.

W

waitFor(long, TimeUnit) - Method in interface com.zaxxer.nuprocess.NuProcess
Waits for the process to exit in a blocking fashion.
wantWrite() - Method in interface com.zaxxer.nuprocess.NuProcess
Express a desire to write data to the STDIN stream of the process.
writeStdin(ByteBuffer) - Method in interface com.zaxxer.nuprocess.NuProcess
Performs a "direct write" rather than expressing a desire to write using NuProcess.wantWrite() and performing the write in a callback.
B C D E H I N O S W 
Skip navigation links

Copyright © 2015 Zaxxer.com. All rights reserved.