*/
public boolean print() throws PrintException {
if (ps == null) {
throw new NullPrintServiceException(err);
} else if (rawCmds == null) {
throw new NullCommandException(err);
}
SimpleDoc doc = new SimpleDoc(rawCmds.getBytes(), docFlavor, docAttr);
DocPrintJob pj = ps.createPrintJob();
pj.addPrintJobListener(new PrintJobListener() {
public void printDataTransferCompleted(PrintJobEvent pje) {