|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.java4less.textprinter.PrinterPort | +--com.java4less.textprinter.ports.HDParallelPort
Class used to access the printer using a the Java Communications API.
Note: although the communications api defines method for checking the printer state, the SUN implementations does not support them.
Field Summary | |
boolean |
checkPrinterOnline
check if printer is online |
int |
portMode
set parallel port mode |
Constructor Summary | |
HDParallelPort(java.lang.String port)
|
Method Summary | |
void |
close()
closes port |
void |
open()
opens port |
void |
parallelEvent(ParallelPortEvent ev)
|
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 com.java4less.textprinter.PrinterPort |
getTimeout, isBusy, isInError, isOnline, isPaperOut, setTimeout, write |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int portMode
public boolean checkPrinterOnline
Constructor Detail |
public HDParallelPort(java.lang.String port)
Method Detail |
public void open() throws TextPrinterException
open
in class PrinterPort
TextPrinterException
public void close() throws TextPrinterException
close
in class PrinterPort
TextPrinterException
public void write(java.lang.String s) throws TextPrinterException
write
in class PrinterPort
TextPrinterException
public void write(byte[] s, int len) throws TextPrinterException
write
in class PrinterPort
TextPrinterException
public void parallelEvent(ParallelPortEvent ev)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |