我需要对我的打印机有更多的控制,然后我试图获取我的打印机的PrinterState,然后使用PrintStareReasons。我的代码如下:publicvoidcheckPrinterStatus(){try{logger.info("Check--------------");Thread.sleep(2000);}catch(InterruptedExceptione){//TODOAuto-generatedcatchblocke.printStackTrace();}PrintServiceprinter=configParamPrintService.getPrintSer