new Destination(URI uri)
import javax.print.attribute.HashPrintRequestAttributeSet; import javax.print.attribute.PrintRequestAttributeSet; import javax.print.attribute.standard.Destination; public class Main { public static void main(String[] argv) throws Exception { // Set up destination attribute PrintRequestAttributeSet aset = new HashPrintRequestAttributeSet(); aset.add(new Destination(new java.net.URI("file:e:/temp/out.ps"))); } }