com.ibm.jtopenlite.components
Class ListSpooledFiles
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListSpooledFiles
public ListSpooledFiles()
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