|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.access.PrintObject
com.ibm.as400.access.WriterJob
The WriterJob class represents a server writer job. An instance of this class can be used to manipulate an individual writer. Use the start method to obtain a instance of this class. See Writer Job Attributes for valid attributes.
Field Summary |
---|
Method Summary | |
---|---|
void |
end(String endType)
Ends a writer on the server. |
String |
getName()
Returns the name of the writer. |
static WriterJob |
start(AS400 system,
Printer printer,
PrintParameterList options,
OutputQueue outputQueue)
Starts a writer on the server. |
Methods inherited from class com.ibm.as400.access.PrintObject |
---|
addPropertyChangeListener, addVetoableChangeListener, getFloatAttribute, getIntegerAttribute, getSingleFloatAttribute, getSingleIntegerAttribute, getSingleStringAttribute, getStringAttribute, getSystem, removePropertyChangeListener, removeVetoableChangeListener, setSystem, update |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void end(String endType) throws AS400Exception, AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException, RequestNotSupportedException
endType
- When to end the writer.
May be any of the following values:
AS400Exception
- If the server returns an error message.
AS400SecurityException
- If a security or authority error occurs.
ErrorCompletingRequestException
- If an error occurs before the request is completed.
IOException
- If an error occurs while communicating with the server.
InterruptedException
- If this thread is interrupted.
RequestNotSupportedException
- If the requested function is not supported because the
server operating system is not at the correct level.public String getName()
public static WriterJob start(AS400 system, Printer printer, PrintParameterList options, OutputQueue outputQueue) throws AS400Exception, AS400SecurityException, ErrorCompletingRequestException, IOException, InterruptedException
system
- The system on which to start the writer job.printer
- The printer that should be used
to start the writer job. This printer
must reside on the same system that the
writer job is being started on.options
- Optional. A print parameter list that contains
a list of attributes to start the writer job.
The output queue parameters set in this list override the
output queue parameter.
The following parameters may be set:
outputQueue
- Optional. The output queue to start the
writer job. The output queue must reside on
the same system that the writer job
is being created on.
AS400Exception
- If the server returns an error message.
AS400SecurityException
- If a security or authority error occurs.
ErrorCompletingRequestException
- If an error occurs before the request is completed.
IOException
- If an error occurs while communicating with the server.
InterruptedException
- If this thread is interrupted.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |