java.lang .Object org.continuent.sequoia.controller.backup.backupers .NativeCommandInputSource NativeCommandInputSource public class NativeCommandInputSource (Code) This class defines a NativeCommandInputSource, which provides input
to processes. Current implementation could be extended to use
interfaces but this works for now.
author: Robert Hodges version: 1.0
NativeCommandInputSource public NativeCommandInputSource(String [] arrayInput)(Code) Creates a new NativeCommandInputSource
object to read
from a strings of arrays.
NativeCommandInputSource public NativeCommandInputSource(InputStream inputStream)(Code) Creates a new NativeCommandInputSource
object to read
from an InputStream.
Parameters: inputStream - An open input stream
close public void close() throws IOException (Code) Closes the input source.
throws: IOException - Thrown if there is an error during the close operation
createArrayInputSource public static NativeCommandInputSource createArrayInputSource(String [] inputArray)(Code) Factory method to create an input source that reads arrays.
Parameters: inputArray - Array of string inputs. Configured input source
createInputStreamSource public static NativeCommandInputSource createInputStreamSource(InputStream inputStream)(Code) Factory method to create an input source that reads arrays.
Parameters: inputStream - An open InputStream containing input Configured input source
write public void write(OutputStream outputStream) throws IOException (Code) Writes all available input to the native command process, returning
when the input source is exhausted.
Parameters: outputStream - Stream that feeds input to processthrows: IOException - Thrown if there is an IO error