8035162: Service printing service
Reviewed-by: bae, jgodinez, mschoene
This commit is contained in:
parent
3847915051
commit
cc10c54160
@ -136,7 +136,7 @@ public class CUPSPrinter {
|
||||
/**
|
||||
* Returns array of MediaSizeNames derived from PPD.
|
||||
*/
|
||||
public MediaSizeName[] getMediaSizeNames() {
|
||||
MediaSizeName[] getMediaSizeNames() {
|
||||
initMedia();
|
||||
return cupsMediaSNames;
|
||||
}
|
||||
@ -145,7 +145,7 @@ public class CUPSPrinter {
|
||||
/**
|
||||
* Returns array of Custom MediaSizeNames derived from PPD.
|
||||
*/
|
||||
public CustomMediaSizeName[] getCustomMediaSizeNames() {
|
||||
CustomMediaSizeName[] getCustomMediaSizeNames() {
|
||||
initMedia();
|
||||
return cupsCustomMediaSNames;
|
||||
}
|
||||
@ -157,7 +157,7 @@ public class CUPSPrinter {
|
||||
/**
|
||||
* Returns array of MediaPrintableArea derived from PPD.
|
||||
*/
|
||||
public MediaPrintableArea[] getMediaPrintableArea() {
|
||||
MediaPrintableArea[] getMediaPrintableArea() {
|
||||
initMedia();
|
||||
return cupsMediaPrintables;
|
||||
}
|
||||
@ -165,7 +165,7 @@ public class CUPSPrinter {
|
||||
/**
|
||||
* Returns array of MediaTrays derived from PPD.
|
||||
*/
|
||||
public MediaTray[] getMediaTrays() {
|
||||
MediaTray[] getMediaTrays() {
|
||||
initMedia();
|
||||
return cupsMediaTrays;
|
||||
}
|
||||
|
@ -1002,7 +1002,9 @@ public class IPPPrintService implements PrintService, SunPrinterJobService {
|
||||
|
||||
public synchronized Class<?>[] getSupportedAttributeCategories() {
|
||||
if (supportedCats != null) {
|
||||
return supportedCats;
|
||||
Class<?> [] copyCats = new Class<?>[supportedCats.length];
|
||||
System.arraycopy(supportedCats, 0, copyCats, 0, copyCats.length);
|
||||
return copyCats;
|
||||
}
|
||||
|
||||
initAttributes();
|
||||
@ -1065,7 +1067,9 @@ public class IPPPrintService implements PrintService, SunPrinterJobService {
|
||||
|
||||
supportedCats = new Class<?>[catList.size()];
|
||||
catList.toArray(supportedCats);
|
||||
return supportedCats;
|
||||
Class<?>[] copyCats = new Class<?>[supportedCats.length];
|
||||
System.arraycopy(supportedCats, 0, copyCats, 0, copyCats.length);
|
||||
return copyCats;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user