236237238239240241242243244245246
psPrinter = factories[0].getPrintService(fos); } catch (Exception e) { throw new PrintException("cannotPrintToFile", e); } printPrinter(psPrinter, comp); psPrinter.dispose(); try { fos.close(); } catch (Exception e2) { throw new PrintException("cannotPrintToFile", e2); }
263264265266267268269270271272273
} catch (Exception e) { System.err.println(messageWriter.print2args("cannotPrintToFile", fileName, e.getMessage())); return; } print(psPrinter); psPrinter.dispose(); try { fos.close(); } catch (Exception e2) { System.err.println(messageWriter.print2args("cannotPrintToFile", fileName, e2.getMessage())); return;
202203204205206207208209210211212
try { sps.getOutputStream().close(); } catch (IOException e) { // just ignore } sps.dispose(); //return sps.getSupportedAttributeValues(category, // flavor, attributes); return client.getSupportedAttributeValues(category, clientFlavors[i], attributes); }
252253254255256257258259260261262
try { sps.getOutputStream().close(); } catch (IOException e) { // just ignore } sps.dispose(); //return sps.isAttributeValueSupported(attrval, flavor, attributes); return client.isAttributeValueSupported(attrval, clientFlavors[i], attributes); } }
201202203204205206207208209210211
251252253254255256257258259260261