-
Bug
-
Resolution: Fixed
-
P3
-
1.4.2
-
b51
-
x86
-
windows_98
Name: rmT116609 Date: 10/23/2003
A DESCRIPTION OF THE PROBLEM :
Std. Ed. v1.4.1 javadocs
in "package javax.print"
has "Interface PrintService"
Shows example using "InputStreamDoc("test.ps", flavor);"
but InputStreamDoc does not exist in the javadocs.
I'm kind of stuck as to use this example when I can't find the InputStreamDoc.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
PrintService javadocs shows example (see Actual below) Cannot find InputStreamDoc in the JavaDocs.
ACTUAL -
Overview Package Class Use Tree Deprecated Index Help
JavaTM 2 Platform
Std. Ed. v1.4.1
PREV CLASS NEXT CLASS FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
--------------------------------------------------------------------------------
javax.print
Interface PrintService
All Known Subinterfaces:
MultiDocPrintService
All Known Implementing Classes:
StreamPrintService
--------------------------------------------------------------------------------
public interface PrintService
Interface PrintService is the factory for a DocPrintJob. A PrintService describes the capabilities of a Printer and can be queried regarding a printer's supported attributes.
Example:
DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;
PrintRequestAttributeSet aset = new HashPrintRequestHashAttributeSet();
aset.add(MediaSizeName.ISO_A4);
PrintService[] pservices =
PrintServiceLookup.lookupPrintServices(flavor, aset);
if (pservices.length > 0) {
DocPrintJob pj = pservices[0].createPrintJob();
// InputStreamDoc is an implementation of the Doc interface //
Doc doc = new InputStreamDoc("test.ps", flavor);
try {
pj.print(doc, aset);
} catch (PrintException e) {
}
}
URL OF FAULTY DOCUMENTATION :
j2sdk1.4.1_05\docs\api\javax\print\PrintService.html
(Incident Review ID: 217405)
======================================================================
A DESCRIPTION OF THE PROBLEM :
Std. Ed. v1.4.1 javadocs
in "package javax.print"
has "Interface PrintService"
Shows example using "InputStreamDoc("test.ps", flavor);"
but InputStreamDoc does not exist in the javadocs.
I'm kind of stuck as to use this example when I can't find the InputStreamDoc.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
PrintService javadocs shows example (see Actual below) Cannot find InputStreamDoc in the JavaDocs.
ACTUAL -
Overview Package Class Use Tree Deprecated Index Help
JavaTM 2 Platform
Std. Ed. v1.4.1
PREV CLASS NEXT CLASS FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD DETAIL: FIELD | CONSTR | METHOD
--------------------------------------------------------------------------------
javax.print
Interface PrintService
All Known Subinterfaces:
MultiDocPrintService
All Known Implementing Classes:
StreamPrintService
--------------------------------------------------------------------------------
public interface PrintService
Interface PrintService is the factory for a DocPrintJob. A PrintService describes the capabilities of a Printer and can be queried regarding a printer's supported attributes.
Example:
DocFlavor flavor = DocFlavor.INPUT_STREAM.POSTSCRIPT;
PrintRequestAttributeSet aset = new HashPrintRequestHashAttributeSet();
aset.add(MediaSizeName.ISO_A4);
PrintService[] pservices =
PrintServiceLookup.lookupPrintServices(flavor, aset);
if (pservices.length > 0) {
DocPrintJob pj = pservices[0].createPrintJob();
// InputStreamDoc is an implementation of the Doc interface //
Doc doc = new InputStreamDoc("test.ps", flavor);
try {
pj.print(doc, aset);
} catch (PrintException e) {
}
}
URL OF FAULTY DOCUMENTATION :
j2sdk1.4.1_05\docs\api\javax\print\PrintService.html
(Incident Review ID: 217405)
======================================================================