com.ibm.jtopenlite.components
Class ListSpooledFiles

java.lang.Object
  extended by com.ibm.jtopenlite.components.ListSpooledFiles

public class ListSpooledFiles
extends Object

Represents the information returned by the WRKSPLF command, but uses the OpenListOfSpooledFiles classes to obtain it.


Constructor Summary
ListSpooledFiles()
           
 
Method Summary
 SpooledFileInfo[] getSpooledFiles(CommandConnection conn)
          Returns an array of spooled files for the current user, similar to the way WRKSPLF does.
 void getSpooledFiles(CommandConnection conn, SpooledFileInfoListener listener)
           
 SpooledFileInfo[] getSpooledFiles(CommandConnection conn, String user)
          Returns an array of spooled files for the specified user, similar to the way WRKSPLF does.
 void getSpooledFiles(CommandConnection conn, String user, SpooledFileInfoListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ListSpooledFiles

public ListSpooledFiles()
Method Detail

getSpooledFiles

public SpooledFileInfo[] getSpooledFiles(CommandConnection conn)
                                  throws IOException
Returns an array of spooled files for the current user, similar to the way WRKSPLF does. The various SpooledFileInfo.toString() methods print the fields the way WRKSPLF does.

Parameters:
conn - The connection to use.
Throws:
IOException

getSpooledFiles

public void getSpooledFiles(CommandConnection conn,
                            SpooledFileInfoListener listener)
                     throws IOException
Throws:
IOException

getSpooledFiles

public SpooledFileInfo[] getSpooledFiles(CommandConnection conn,
                                         String user)
                                  throws IOException
Returns an array of spooled files for the specified user, similar to the way WRKSPLF does. The various SpooledFileInfo.toString() methods print the fields the way WRKSPLF does.

Parameters:
conn - The connection to use.
user - The user name, or *CURRENT, or *ALL.
Throws:
IOException

getSpooledFiles

public void getSpooledFiles(CommandConnection conn,
                            String user,
                            SpooledFileInfoListener listener)
                     throws IOException
Throws:
IOException