public class ProcessDataSource extends DataSource
DEFAULT_INTRO_LIMIT, MARK_WORKAROUND_PROPERTY| Constructor and Description | 
|---|
| ProcessDataSource(java.lang.ProcessBuilder pbuilder)Constructor. | 
| Modifier and Type | Method and Description | 
|---|---|
| static java.lang.ProcessBuilder | createCommandLineProcessBuilder(java.lang.String cmdLine)Utility method to create a process builder given a shell command line
 that generates output to standard output. | 
| protected java.io.InputStream | getRawInputStream()Provides a new InputStream for this data source. | 
close, forceCompression, getCompression, getHybridInputStream, getInputStream, getInputStream, getIntro, getIntroLimit, getLength, getMarkWorkaround, getName, getPosition, getRawLength, getSystemId, getURL, makeDataSource, makeDataSource, makeDataSource, setCompression, setIntroLimit, setMarkWorkaround, setName, setPosition, toStringpublic ProcessDataSource(java.lang.ProcessBuilder pbuilder)
pbuilder - process builderprotected java.io.InputStream getRawInputStream()
                                         throws java.io.IOException
DataSourcegetRawInputStream in class DataSourcejava.io.IOExceptionpublic static java.lang.ProcessBuilder createCommandLineProcessBuilder(java.lang.String cmdLine)
This method simply sets up a ProcessBuilder to execute a process with the argv { "sh", "-c", cmdLine }. I haven't tested this exhaustively, but I'd expect it to work on un*x-like systems. I've got no idea if there's any chance of getting something like this to work on MS Windows, or even if such a thing would be any use.
cmdLine - shell command that generates output to stdout