|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.java4less.rfax.FaxModem
Fax modem. The steps to send a fax are:
- create faxModem Object
- set port and modem class
- call open()
- call sendFax()
- call close()
Field Summary | |
boolean |
AtFBOR
FBOR command? |
java.lang.String |
ATFlowControlNone
AT command for flow control none |
java.lang.String |
ATFlowControlRTSCTS
AT command for flow control rts/cts |
java.lang.String |
ATFlowControlXONXOFF
AT command for flow control xon/xoff |
int |
bitRate
bit rate: 2: 4800 bps 3: 9600 bps |
boolean |
debug
debug, send log to System.out |
boolean |
dialTone
dial tone/pulse |
boolean |
directBitOrder
bit order, if true LSB2MSB |
int |
faxClass
requested fax class |
java.lang.String |
faxFile
temporary fax file. |
int |
flowControl
flow control |
static int |
FLOWCONTROL_NONE
|
static int |
FLOWCONTROL_RTSCTS
|
static int |
FLOWCONTROL_XONXOFF
|
int |
hangCode
hangup code |
java.lang.String[] |
initCommands
list of init AT commands |
java.lang.String |
lastError
description of last error |
int |
lastResponse
last response |
FaxStatusListener |
listener
status listener. |
boolean |
log
log mode |
java.lang.String |
logStr
log output |
int |
maxRetries
maximum number of page transmision retries |
java.lang.String |
noEcho
No echo command |
java.lang.String |
ownId
own telephone number |
int |
pageCode
result last page |
FaxProducer |
producer
fax producer |
java.lang.String |
resetCommand
AT reset command (ATZ) |
int |
resolution
resolution normal or fine (default) |
static int |
RESOLUTION_FINE
196 dpi vertical resolution |
static int |
RESOLUTION_NORMAL
98 dpi vertical resolution |
int |
timeout
response timeout seconds (30) |
Constructor Summary | |
FaxModem()
constructor |
Method Summary | |
boolean |
close()
closes connection to modem |
T4Encoder |
getEncoder()
get t.4 encoder |
java.lang.String |
getInitString()
get modem init. |
boolean |
open(FaxProducer p)
open connection |
boolean |
sendFax(java.lang.String destId)
send fax |
void |
setInitString(java.lang.String s)
set modem init. |
void |
setPortName(java.lang.String p)
select modem/port, for example COM1 , COM2 (for windows) or /dev/term/a for unix like systems |
boolean |
supportsClass1()
is a class 1 fax modem? |
boolean |
supportsClass2()
is a class 2 fax modem? |
boolean |
supportsClass20()
is a class 20 fax modem? |
boolean |
waitFor(java.lang.String resp)
|
Methods inherited from class java.lang.Object |
equals,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public int maxRetries
public int bitRate
public int resolution
public static final int RESOLUTION_NORMAL
public static final int RESOLUTION_FINE
public java.lang.String faxFile
public java.lang.String lastError
public java.lang.String resetCommand
public int timeout
public int lastResponse
public int pageCode
public int hangCode
public static final int FLOWCONTROL_NONE
public static final int FLOWCONTROL_XONXOFF
public static final int FLOWCONTROL_RTSCTS
public int flowControl
public java.lang.String ATFlowControlNone
public java.lang.String ATFlowControlXONXOFF
public java.lang.String ATFlowControlRTSCTS
public boolean directBitOrder
public boolean AtFBOR
public boolean dialTone
public int faxClass
public java.lang.String ownId
public java.lang.String noEcho
public boolean log
public boolean debug
public java.lang.String logStr
public FaxProducer producer
public java.lang.String[] initCommands
public FaxStatusListener listener
Constructor Detail |
public FaxModem()
Method Detail |
public java.lang.String getInitString()
public void setInitString(java.lang.String s)
public void setPortName(java.lang.String p)
public boolean supportsClass1()
public boolean supportsClass2()
public boolean supportsClass20()
public T4Encoder getEncoder()
public boolean open(FaxProducer p)
public boolean sendFax(java.lang.String destId)
public boolean waitFor(java.lang.String resp)
public boolean close()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |