how we can get singal at port(printer) with assist of java??