1 <!DOCTYPE HTML PUBLIC
"-//W3C//DTD HTML 4.0 Frameset//EN""http://www.w3.org/TR/REC-html40/frameset.dtd">
5 <!-- Generated by javadoc on Tue Feb 11 14:29:07 PST 2003 -->
9 <LINK REL =
"stylesheet" TYPE=
"text/css" HREF=
"../../../stylesheet.css" TITLE=
"Style">
11 <BODY BGCOLOR=
"white">
13 <!-- ========== START OF NAVBAR ========== -->
14 <A NAME=
"navbar_top"><!-- --></A>
15 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0">
17 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
18 <A NAME=
"navbar_top_firstrow"><!-- --></A>
19 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3">
20 <TR ALIGN=
"center" VALIGN=
"top">
21 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
22 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
23 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
24 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
25 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
26 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
30 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
36 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
37 PREV CLASS
38 <A HREF=
"../../../com/easysw/cups/CupsJob.html"><B>NEXT CLASS
</B></A></FONT></TD>
39 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
40 <A HREF=
"../../../index.html" TARGET=
"_top"><B>FRAMES
</B></A>
41 <A HREF=
"Cups.html" TARGET=
"_top"><B>NO FRAMES
</B></A></FONT></TD>
44 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
45 SUMMARY:
INNER
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
46 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
47 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
50 <!-- =========== END OF NAVBAR =========== -->
53 <!-- ======== START OF CLASS DATA ======== -->
56 com.easysw.cups
</FONT>
62 +--
<B>com.easysw.cups.Cups
</B>
66 <DT>public class
<B>Cups
</B><DT>extends java.lang.Object
</DL>
72 <!-- ======== INNER CLASS SUMMARY ======== -->
75 <!-- =========== FIELD SUMMARY =========== -->
78 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
80 <A NAME=
"constructor_summary"><!-- --></A>
81 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
82 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
83 <TD COLSPAN=
2><FONT SIZE=
"+2">
84 <B>Constructor Summary
</B></FONT></TD>
86 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
87 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#Cups()">Cups
</A></B>()
</CODE>
90 Void constructor.
</TD>
92 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
93 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#Cups(java.net.URL)">Cups
</A></B>(java.net.URL
p_url)
</CODE>
96 Constructor using a
<code>URL
</code>.
</TD>
100 <!-- ========== METHOD SUMMARY =========== -->
102 <A NAME=
"method_summary"><!-- --></A>
103 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
104 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
105 <TD COLSPAN=
2><FONT SIZE=
"+2">
106 <B>Method Summary
</B></FONT></TD>
108 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
109 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
110 <CODE> int
</CODE></FONT></TD>
111 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#cupsCancelJob(java.lang.String, int, java.lang.String)">cupsCancelJob
</A></B>(java.lang.String
printer_name,
113 java.lang.String
p_user_name)
</CODE>
116 Cancel a job - send a job cancel request to the server.
</TD>
118 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
119 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
120 <CODE> java.lang.String
</CODE></FONT></TD>
121 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#cupsGetDefault()">cupsGetDefault
</A></B>()
</CODE>
124 Get default destination.
</TD>
126 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
127 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
128 <CODE> <A HREF=
"../../../com/easysw/cups/CupsJob.html">CupsJob
</A>[]
</CODE></FONT></TD>
129 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#cupsGetJobs(boolean, boolean)">cupsGetJobs
</A></B>(boolean
showMyJobs,
130 boolean
showCompleted)
</CODE>
133 Get a list of jobs.
</TD>
135 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
136 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
137 <CODE> java.util.List
</CODE></FONT></TD>
138 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#cupsGetPrinterAttributes(java.lang.String)">cupsGetPrinterAttributes
</A></B>(java.lang.String
printer_name)
</CODE>
141 Get printer attributes
</TD>
143 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
144 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
145 <CODE> java.lang.String[]
</CODE></FONT></TD>
146 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#cupsGetPrinters()">cupsGetPrinters
</A></B>()
</CODE>
149 Get a list of printers.
</TD>
151 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
152 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
153 <CODE> java.util.List
</CODE></FONT></TD>
154 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#cupsGetPrinterStatus(java.lang.String)">cupsGetPrinterStatus
</A></B>(java.lang.String
printer_name)
</CODE>
157 </TD>
159 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
160 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
161 <CODE> <A HREF=
"../../../com/easysw/cups/CupsJob.html">CupsJob
</A></CODE></FONT></TD>
162 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#cupsPrintFile(java.lang.String, com.easysw.cups.IPPAttribute[])">cupsPrintFile
</A></B>(java.lang.String
p_filename,
163 <A HREF=
"../../../com/easysw/cups/IPPAttribute.html">IPPAttribute
</A>[]
p_attrs)
</CODE>
166 Print a file.
</TD>
168 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
169 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
170 <CODE> boolean
</CODE></FONT></TD>
171 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#doRequest()">doRequest
</A></B>()
</CODE>
174 Do a CUPS request to the server.
</TD>
176 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
177 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
178 <CODE> boolean
</CODE></FONT></TD>
179 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#doRequest(java.io.File)">doRequest
</A></B>(java.io.File
file)
</CODE>
182 Send a FILE to the CUPS server.
</TD>
184 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
185 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
186 <CODE> boolean
</CODE></FONT></TD>
187 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#doRequest(java.lang.String)">doRequest
</A></B>(java.lang.String
from)
</CODE>
190 </TD>
192 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
193 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
194 <CODE> boolean
</CODE></FONT></TD>
195 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#getEncrypt()">getEncrypt
</A></B>()
</CODE>
198 Get the value of the
<code>encrypt
</code> member.
</TD>
200 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
201 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
202 <CODE> void
</CODE></FONT></TD>
203 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#setDest(java.lang.String)">setDest
</A></B>(java.lang.String
p_dest)
</CODE>
206 Set the value of the
<code>dest
</code> member.
</TD>
208 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
209 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
210 <CODE> void
</CODE></FONT></TD>
211 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#setEncrypt(boolean)">setEncrypt
</A></B>(boolean
p_encrypt)
</CODE>
214 Set the value of the
<code>encrypt
</code> member.
</TD>
216 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
217 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
218 <CODE> void
</CODE></FONT></TD>
219 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#setInstance(java.lang.String)">setInstance
</A></B>(java.lang.String
p_instance)
</CODE>
222 Set the value of the
<code>instance
</code> member.
</TD>
224 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
225 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
226 <CODE> void
</CODE></FONT></TD>
227 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#setPasswd(java.lang.String)">setPasswd
</A></B>(java.lang.String
p_passwd)
</CODE>
230 Set the value of the
<code>passwd
</code> member.
</TD>
232 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
233 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
234 <CODE> void
</CODE></FONT></TD>
235 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#setPath(java.lang.String)">setPath
</A></B>(java.lang.String
p_path)
</CODE>
238 Set the value of the
<code>path
</code> member.
</TD>
240 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
241 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
242 <CODE> void
</CODE></FONT></TD>
243 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#setPort(int)">setPort
</A></B>(int
p_port)
</CODE>
246 Set the value of the
<code>port
</code> member.
</TD>
248 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
249 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
250 <CODE> void
</CODE></FONT></TD>
251 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#setProtocol(java.lang.String)">setProtocol
</A></B>(java.lang.String
p_protocol)
</CODE>
254 Set the value of the
<code>protocol
</code> member.
</TD>
256 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
257 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
258 <CODE> void
</CODE></FONT></TD>
259 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#setServer(java.lang.String)">setServer
</A></B>(java.lang.String
p_server)
</CODE>
262 Set the value of the
<code>server
</code> member.
</TD>
264 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
265 <TD ALIGN=
"right" VALIGN=
"top" WIDTH=
"1%"><FONT SIZE=
"-1">
266 <CODE> void
</CODE></FONT></TD>
267 <TD><CODE><B><A HREF=
"../../../com/easysw/cups/Cups.html#setUser(java.lang.String)">setUser
</A></B>(java.lang.String
p_user)
</CODE>
270 Set the value of the
<code>user
</code> member.
</TD>
273 <A NAME=
"methods_inherited_from_class_java.lang.Object"><!-- --></A>
274 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
275 <TR BGCOLOR=
"#EEEEFF" CLASS=
"TableSubHeadingColor">
276 <TD><B>Methods inherited from class java.lang.Object
</B></TD>
278 <TR BGCOLOR=
"white" CLASS=
"TableRowColor">
279 <TD><CODE>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
</CODE></TD>
285 <!-- ============ FIELD DETAIL =========== -->
288 <!-- ========= CONSTRUCTOR DETAIL ======== -->
290 <A NAME=
"constructor_detail"><!-- --></A>
291 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
292 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
293 <TD COLSPAN=
1><FONT SIZE=
"+2">
294 <B>Constructor Detail
</B></FONT></TD>
298 <A NAME=
"Cups()"><!-- --></A><H3>
301 public
<B>Cups
</B>()
</PRE>
303 <DD>Void constructor.
</DL>
306 <A NAME=
"Cups(java.net.URL)"><!-- --></A><H3>
309 public
<B>Cups
</B>(java.net.URL
p_url)
</PRE>
311 <DD>Constructor using a
<code>URL
</code>.
<DD><DL>
312 <DT><B>Parameters:
</B><DD><CODE><code>p_url
</code></CODE> - A
<code>URL
</code> object.
</DL>
316 <!-- ============ METHOD DETAIL ========== -->
318 <A NAME=
"method_detail"><!-- --></A>
319 <TABLE BORDER=
"1" CELLPADDING=
"3" CELLSPACING=
"0" WIDTH=
"100%">
320 <TR BGCOLOR=
"#CCCCFF" CLASS=
"TableHeadingColor">
321 <TD COLSPAN=
1><FONT SIZE=
"+2">
322 <B>Method Detail
</B></FONT></TD>
326 <A NAME=
"setProtocol(java.lang.String)"><!-- --></A><H3>
329 public void
<B>setProtocol
</B>(java.lang.String
p_protocol)
</PRE>
331 <DD>Set the value of the
<code>protocol
</code> member. Valid values
332 are ipp or http.
<DD><DL>
333 <DT><B>Parameters:
</B><DD><CODE><code>p_protocol
</code></CODE> - String with protocol.
</DL>
338 <A NAME=
"setServer(java.lang.String)"><!-- --></A><H3>
341 public void
<B>setServer
</B>(java.lang.String
p_server)
</PRE>
343 <DD>Set the value of the
<code>server
</code> member. This is an
344 IP address or a hostname.
<DD><DL>
345 <DT><B>Parameters:
</B><DD><CODE><code>p_server
</code></CODE> - IP address or hostname.
</DL>
350 <A NAME=
"setPort(int)"><!-- --></A><H3>
353 public void
<B>setPort
</B>(int
p_port)
</PRE>
355 <DD>Set the value of the
<code>port
</code> member.
<DD><DL>
356 <DT><B>Parameters:
</B><DD><CODE><code>p_port
</code></CODE> - Port number.
</DL>
361 <A NAME=
"setUser(java.lang.String)"><!-- --></A><H3>
364 public void
<B>setUser
</B>(java.lang.String
p_user)
</PRE>
366 <DD>Set the value of the
<code>user
</code> member.
<DD><DL>
367 <DT><B>Parameters:
</B><DD><CODE><code>p_user
</code></CODE> - User name.
</DL>
372 <A NAME=
"setPasswd(java.lang.String)"><!-- --></A><H3>
375 public void
<B>setPasswd
</B>(java.lang.String
p_passwd)
</PRE>
377 <DD>Set the value of the
<code>passwd
</code> member.
<DD><DL>
378 <DT><B>Parameters:
</B><DD><CODE><code>p_passwd
</code></CODE> - Password.
</DL>
383 <A NAME=
"setDest(java.lang.String)"><!-- --></A><H3>
386 public void
<B>setDest
</B>(java.lang.String
p_dest)
</PRE>
388 <DD>Set the value of the
<code>dest
</code> member.
<DD><DL>
389 <DT><B>Parameters:
</B><DD><CODE><code>p_dest
</code></CODE> - Destination.
</DL>
394 <A NAME=
"setInstance(java.lang.String)"><!-- --></A><H3>
397 public void
<B>setInstance
</B>(java.lang.String
p_instance)
</PRE>
399 <DD>Set the value of the
<code>instance
</code> member.
<DD><DL>
400 <DT><B>Parameters:
</B><DD><CODE><code>p_instance
</code></CODE> - Instance.
</DL>
405 <A NAME=
"setEncrypt(boolean)"><!-- --></A><H3>
408 public void
<B>setEncrypt
</B>(boolean
p_encrypt)
</PRE>
410 <DD>Set the value of the
<code>encrypt
</code> member.
<DD><DL>
411 <DT><B>Parameters:
</B><DD><CODE><code>p_enrypt
</code></CODE> - Yes or no.
</DL>
416 <A NAME=
"getEncrypt()"><!-- --></A><H3>
419 public boolean
<B>getEncrypt
</B>()
</PRE>
421 <DD>Get the value of the
<code>encrypt
</code> member.
<DD><DL>
422 <DT><B>Returns:
</B><DD><code>boolean
</code> Encryption on or off.
</DL>
427 <A NAME=
"setPath(java.lang.String)"><!-- --></A><H3>
430 public void
<B>setPath
</B>(java.lang.String
p_path)
</PRE>
432 <DD>Set the value of the
<code>path
</code> member. This is the
433 path that will be used in the POST method.
<DD><DL>
434 <DT><B>Parameters:
</B><DD><CODE><code>p_path
</code></CODE> - Path on server.
</DL>
439 <A NAME=
"doRequest(java.lang.String)"><!-- --></A><H3>
442 public boolean
<B>doRequest
</B>(java.lang.String
from)
443 throws java.io.IOException
</PRE>
448 <A NAME=
"doRequest()"><!-- --></A><H3>
451 public boolean
<B>doRequest
</B>()
452 throws java.io.IOException
</PRE>
454 <DD>Do a CUPS request to the server.
<DD><DL>
455 <DT><B>Parameters:
</B><DD><CODE><code>p_dest
</code></CODE> - Destination name.
<DT><B>Returns:
</B><DD><code>boolean
</code> True on success, false otherwise
</DL>
460 <A NAME=
"doRequest(java.io.File)"><!-- --></A><H3>
463 public boolean
<B>doRequest
</B>(java.io.File
file)
464 throws java.io.IOException
</PRE>
466 <DD>Send a FILE to the CUPS server.
<DD><DL>
467 <DT><B>Parameters:
</B><DD><CODE><code>file
</code></CODE> - File to send.
<DT><B>Returns:
</B><DD><code>boolean
</code> True on success, false otherwise
</DL>
472 <A NAME=
"cupsGetJobs(boolean, boolean)"><!-- --></A><H3>
475 public
<A HREF=
"../../../com/easysw/cups/CupsJob.html">CupsJob
</A>[]
<B>cupsGetJobs
</B>(boolean
showMyJobs,
476 boolean
showCompleted)
477 throws java.io.IOException
</PRE>
479 <DD>Get a list of jobs.
<DD><DL>
480 <DT><B>Parameters:
</B><DD><CODE><code>showMyJobs
</code></CODE> - Show only jobs for user.
<DD><CODE><code>showCompleted
</code></CODE> - Show completed OR active jobs.
<DT><B>Returns:
</B><DD><code>CupsJob[]
</code> Array of job objects, or null.
</DL>
485 <A NAME=
"cupsGetPrinters()"><!-- --></A><H3>
488 public java.lang.String[]
<B>cupsGetPrinters
</B>()
489 throws java.io.IOException
</PRE>
491 <DD>Get a list of printers.
<DD><DL>
492 <DT><B>Returns:
</B><DD><code>String[]
</code> Array of printers, or null.
</DL>
497 <A NAME=
"cupsGetDefault()"><!-- --></A><H3>
500 public java.lang.String
<B>cupsGetDefault
</B>()
501 throws java.io.IOException
</PRE>
503 <DD>Get default destination.
<DD><DL>
504 <DT><B>Returns:
</B><DD><code>String
</code> Name of default printer, or null.
</DL>
509 <A NAME=
"cupsGetPrinterAttributes(java.lang.String)"><!-- --></A><H3>
510 cupsGetPrinterAttributes
</H3>
512 public java.util.List
<B>cupsGetPrinterAttributes
</B>(java.lang.String
printer_name)
513 throws java.io.IOException
</PRE>
515 <DD>Get printer attributes
<DD><DL>
516 <DT><B>Parameters:
</B><DD><CODE><code>printer_name
</code></CODE> - Name of printer to get info for.
<DT><B>Returns:
</B><DD><code>List
</code> List of attributes.
<DT><B>See Also:
</B><DD><code>CupsPrinter
</code></DL>
521 <A NAME=
"cupsPrintFile(java.lang.String, com.easysw.cups.IPPAttribute[])"><!-- --></A><H3>
524 public
<A HREF=
"../../../com/easysw/cups/CupsJob.html">CupsJob
</A> <B>cupsPrintFile
</B>(java.lang.String
p_filename,
525 <A HREF=
"../../../com/easysw/cups/IPPAttribute.html">IPPAttribute
</A>[]
p_attrs)
526 throws java.io.IOException
</PRE>
528 <DD>Print a file.
<DD><DL>
529 <DT><B>Parameters:
</B><DD><CODE><code>p_filename
</code></CODE> - Path of file to print.
<DD><CODE><code>p_attrs[]
</code></CODE> - Array of print job attributes.
<DT><B>Returns:
</B><DD><code>CupsJob
</code> Object with job info.
<DT><B>See Also:
</B><DD><code>CupsJob
</code></DL>
534 <A NAME=
"cupsCancelJob(java.lang.String, int, java.lang.String)"><!-- --></A><H3>
537 public int
<B>cupsCancelJob
</B>(java.lang.String
printer_name,
539 java.lang.String
p_user_name)
540 throws java.io.IOException
</PRE>
542 <DD>Cancel a job - send a job cancel request to the server.
<DD><DL>
543 <DT><B>Parameters:
</B><DD><CODE><code>printer_name
</code></CODE> - Destination.
<DD><CODE><code>p_job_id
</code></CODE> - ID of job.
<DD><CODE><code>p_user_name
</code></CODE> - Requesting user name.
</DL>
548 <A NAME=
"cupsGetPrinterStatus(java.lang.String)"><!-- --></A><H3>
549 cupsGetPrinterStatus
</H3>
551 public java.util.List
<B>cupsGetPrinterStatus
</B>(java.lang.String
printer_name)
552 throws java.io.IOException
</PRE>
555 <!-- ========= END OF CLASS DATA ========= -->
558 <!-- ========== START OF NAVBAR ========== -->
559 <A NAME=
"navbar_bottom"><!-- --></A>
560 <TABLE BORDER=
"0" WIDTH=
"100%" CELLPADDING=
"1" CELLSPACING=
"0">
562 <TD COLSPAN=
2 BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1">
563 <A NAME=
"navbar_bottom_firstrow"><!-- --></A>
564 <TABLE BORDER=
"0" CELLPADDING=
"0" CELLSPACING=
"3">
565 <TR ALIGN=
"center" VALIGN=
"top">
566 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-summary.html"><FONT CLASS=
"NavBarFont1"><B>Package
</B></FONT></A> </TD>
567 <TD BGCOLOR=
"#FFFFFF" CLASS=
"NavBarCell1Rev"> <FONT CLASS=
"NavBarFont1Rev"><B>Class
</B></FONT> </TD>
568 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"package-tree.html"><FONT CLASS=
"NavBarFont1"><B>Tree
</B></FONT></A> </TD>
569 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../deprecated-list.html"><FONT CLASS=
"NavBarFont1"><B>Deprecated
</B></FONT></A> </TD>
570 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../index-all.html"><FONT CLASS=
"NavBarFont1"><B>Index
</B></FONT></A> </TD>
571 <TD BGCOLOR=
"#EEEEFF" CLASS=
"NavBarCell1"> <A HREF=
"../../../help-doc.html"><FONT CLASS=
"NavBarFont1"><B>Help
</B></FONT></A> </TD>
575 <TD ALIGN=
"right" VALIGN=
"top" ROWSPAN=
3><EM>
581 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
582 PREV CLASS
583 <A HREF=
"../../../com/easysw/cups/CupsJob.html"><B>NEXT CLASS
</B></A></FONT></TD>
584 <TD BGCOLOR=
"white" CLASS=
"NavBarCell2"><FONT SIZE=
"-2">
585 <A HREF=
"../../../index.html" TARGET=
"_top"><B>FRAMES
</B></A>
586 <A HREF=
"Cups.html" TARGET=
"_top"><B>NO FRAMES
</B></A></FONT></TD>
589 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
590 SUMMARY:
INNER
|
FIELD
|
<A HREF=
"#constructor_summary">CONSTR
</A> |
<A HREF=
"#method_summary">METHOD
</A></FONT></TD>
591 <TD VALIGN=
"top" CLASS=
"NavBarCell3"><FONT SIZE=
"-2">
592 DETAIL:
FIELD
|
<A HREF=
"#constructor_detail">CONSTR
</A> |
<A HREF=
"#method_detail">METHOD
</A></FONT></TD>
595 <!-- =========== END OF NAVBAR =========== -->