This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I have to write a simple applet to print a byte array to a thermal printer (raw textual stream, it is a ESCPOS printer).
I can not understand how to open a RAW stream to the printer, i tried to create a SimpleDoc object and send it to the PrintService but i can not find the correct flavor. Maybe a need a StreamInput object to write, but how to get it from my printer?