Code example for HashDocAttributeSet

Methods: add

0
 
		if (LOG.isDebugEnabled()) {
			LOG.debug("Printing using printer '" + this.printServiceExecutor.getPrintService().getName() + "'.");
		} 
 
	DocAttributeSet das = new HashDocAttributeSet();
		das.add(Chromaticity.MONOCHROME);
 
		Object payload = message.getPayload(); 
 
		final Doc doc = new SimpleDoc(message.getPayload(), docFlavor, das);
 
		final DocPrintJob job = this.printServiceExecutor.getPrintService().createPrintJob();
 
		PrintJobMonitor printJobMonitor = new PrintJobMonitor(job);
 
		job.print(doc, this.printRequestAttributeSet);
 
		printJobMonitor.waitForDone();
 
Contextual code suggestions in your IDE  Get Codota for Java