EDIT: The class I am looking to write is in turn going to be called by a framework. The framework loads my class and asks it to fetch x number of rows from the 'source' - at at time - so it can then pass those x rows down and do stuff with it. The 'source' is a command and I don't see any provisions in the command documentation of batching -so I was thinking i could get the class to basically pause/suspend the command every x rows. Thoughts ???
If I am trying to read the output of a command into a Java program, can I 'pause/suspend' it like I can from the Linux/Unix command line itself? For e.g. if I am running "command-x" and then hit Ctrl-Z, it essentially stops the command, which I can continue later.
Is that possible for me to do when I am reading the output of the program in Java? Or is that something the command has to support?
Thanks in advance!