|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.java4less.textprinter.PrinterPort
Constructor Summary | |
PrinterPort()
|
Method Summary | |
void |
close()
closes port |
int |
getTimeout()
time (milliseconds) to wait for the bytes to be sent to the printer |
java.lang.Boolean |
isBusy()
is the printer busy? |
java.lang.Boolean |
isInError()
is printer in Error? |
java.lang.Boolean |
isOnline()
is printer online? |
java.lang.Boolean |
isPaperOut()
is paper out? |
void |
open()
opens port |
void |
setTimeout(int i)
time (milliseconds) to wait for the bytes to be sent to the printer |
void |
write(byte[] s)
Writes an array of bytes to the port |
void |
write(byte[] s,
int len)
Writes an array of bytes to the port |
void |
write(java.lang.String s)
Writes a string to the port |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PrinterPort()
Method Detail |
public void setTimeout(int i)
public int getTimeout()
public void open() throws TextPrinterException
TextPrinterException
public void close() throws TextPrinterException
TextPrinterException
public void write(byte[] s, int len) throws TextPrinterException
TextPrinterException
public void write(byte[] s) throws TextPrinterException
TextPrinterException
public void write(java.lang.String s) throws TextPrinterException
TextPrinterException
public java.lang.Boolean isOnline()
public java.lang.Boolean isInError()
public java.lang.Boolean isPaperOut()
public java.lang.Boolean isBusy()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |