⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 faxreceivermodem.html

📁 You can send a fax from ANY application that can print to a standard unix printer using the spooli
💻 HTML
📖 第 1 页 / 共 2 页
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN""http://www.w3.org/TR/REC-html40/loose.dtd">
<!--NewPage-->
<HTML>
<HEAD>
<!-- Generated by javadoc on Wed Feb 26 14:30:18 CET 2003 -->
<TITLE>
FaxReceiverModem
</TITLE>
<META NAME="keywords" CONTENT="com.java4less.rfax.FaxReceiverModem,FaxReceiverModem class">
<LINK REL ="stylesheet" TYPE="text/css" HREF="../../../stylesheet.css" TITLE="Style">
</HEAD>
<SCRIPT>
function asd()
{
parent.document.title="FaxReceiverModem";
}
</SCRIPT>
<BODY BGCOLOR="white" onload="asd();">

<!-- ========== START OF NAVBAR ========== -->
<A NAME="navbar_top"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0">
<TR>
<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
<A NAME="navbar_top_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">
  <TR ALIGN="center" VALIGN="top">
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
  </TR>
</TABLE>
</TD>
<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
</EM>
</TD>
</TR>

<TR>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
&nbsp;<A HREF="../../../com/java4less/rfax/FaxModem.html"><B>PREV CLASS</B></A>&nbsp;
&nbsp;<A HREF="../../../com/java4less/rfax/HDLCFrame.html"><B>NEXT CLASS</B></A></FONT></TD>
<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
  <A HREF="../../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;
&nbsp;<A HREF="FaxReceiverModem.html" TARGET="_top"><B>NO FRAMES</B></A>  &nbsp;
&nbsp;<SCRIPT>  <!--  if(window==top) {    document.writeln('<A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A>');  }  //--></SCRIPT><NOSCRIPT><A HREF="../../../allclasses-noframe.html" TARGET=""><B>All Classes</B></A></NOSCRIPT></FONT></TD>
</TR>
<TR>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
  SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
<TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
DETAIL:&nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
</TR>
</TABLE>
<!-- =========== END OF NAVBAR =========== -->

<HR>
<!-- ======== START OF CLASS DATA ======== -->
<H2>
<FONT SIZE="-1">
com.java4less.rfax</FONT>
<BR>
Class FaxReceiverModem</H2>
<PRE>
java.lang.Object
  |
  +--<A HREF="../../../com/java4less/rfax/FaxModem.html">com.java4less.rfax.FaxModem</A>
        |
        +--<B>com.java4less.rfax.FaxReceiverModem</B>
</PRE>
<DL>
<DT><B>All Implemented Interfaces:</B> <DD>java.lang.Runnable</DD>
</DL>
<HR>
<DL>
<DT>public class <B>FaxReceiverModem</B><DT>extends <A HREF="../../../com/java4less/rfax/FaxModem.html">FaxModem</A><DT>implements java.lang.Runnable</DL>

<P>
This class is used for receiving faxes. It can be used in the following way:<br> <br> <br>  FaxReceiverModem m= new FaxReceiverModem(); <br>  m.ATFlowControlRTSCTS="AT&K3"; <br>  m.flowControl=m.FLOWCONTROL_RTSCTS; <br>  m.setPortName("COM3"); <br>  m.faxClass=1; <br>  m.debug=true; <br>  m.faxReceiver=this; <br>  m.openReception(); <br>  m.waitForFax();  //  starts a thread which will wait for an incomming call. <br> <br> where "this" must implement the IFaxReceiver interface. <br> <br> In order to stop the FaxReceiverModem thread you must execute: <br> <br> m.close(); <br>
<P>

<P>
<HR>

<P>
<!-- ======== NESTED CLASS SUMMARY ======== -->


<!-- =========== FIELD SUMMARY =========== -->

<A NAME="field_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Field Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;int</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/java4less/rfax/FaxReceiverModem.html#answerAfterRings">answerAfterRings</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wait this number of rings before answering incomming call. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;<A HREF="../../../com/java4less/rfax/IFaxReceiver.html">IFaxReceiver</A></CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/java4less/rfax/FaxReceiverModem.html#faxReceiver">faxReceiver</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fax receiver. </TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;java.lang.String</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/java4less/rfax/FaxReceiverModem.html#inDirectory">inDirectory</A></B></CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;directory where incomming faxes (tiff files) will be stored. </TD>
</TR>
</TABLE>
&nbsp;<A NAME="fields_inherited_from_class_com.java4less.rfax.FaxModem"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Fields inherited from class com.java4less.rfax.<A HREF="../../../com/java4less/rfax/FaxModem.html">FaxModem</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../com/java4less/rfax/FaxModem.html#AtFBOR">AtFBOR</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#ATFlowControlNone">ATFlowControlNone</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#ATFlowControlRTSCTS">ATFlowControlRTSCTS</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#ATFlowControlXONXOFF">ATFlowControlXONXOFF</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#bitRate">bitRate</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#BITRATE_12000">BITRATE_12000</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#BITRATE_14400">BITRATE_14400</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#BITRATE_2400">BITRATE_2400</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#BITRATE_4800">BITRATE_4800</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#BITRATE_7200">BITRATE_7200</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#BITRATE_9600">BITRATE_9600</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#debug">debug</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#dialTone">dialTone</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#directBitOrder">directBitOrder</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#faxClass">faxClass</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#faxFile">faxFile</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#flowControl">flowControl</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#FLOWCONTROL_NONE">FLOWCONTROL_NONE</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#FLOWCONTROL_RTSCTS">FLOWCONTROL_RTSCTS</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#FLOWCONTROL_XONXOFF">FLOWCONTROL_XONXOFF</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#hangCode">hangCode</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#initCommands">initCommands</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#lastError">lastError</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#lastResponse">lastResponse</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#listener">listener</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#log">log</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#logStr">logStr</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#maxRetries">maxRetries</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#MPSEOPdelay">MPSEOPdelay</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#noEcho">noEcho</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#ownId">ownId</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#pageCode">pageCode</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#producer">producer</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#remoteId">remoteId</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#resetCommand">resetCommand</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#resetDelay">resetDelay</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#resolution">resolution</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#RESOLUTION_FINE">RESOLUTION_FINE</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#RESOLUTION_NORMAL">RESOLUTION_NORMAL</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#sendBufferSize">sendBufferSize</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#timeout">timeout</A></CODE></TD>
</TR>
</TABLE>
&nbsp;
<!-- ======== CONSTRUCTOR SUMMARY ======== -->

<A NAME="constructor_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Constructor Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><B><A HREF="../../../com/java4less/rfax/FaxReceiverModem.html#FaxReceiverModem()">FaxReceiverModem</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;constructor</TD>
</TR>
</TABLE>
&nbsp;
<!-- ========== METHOD SUMMARY =========== -->

<A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
<TD COLSPAN=2><FONT SIZE="+2">
<B>Method Summary</B></FONT></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/java4less/rfax/FaxReceiverModem.html#close()">close</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;close port and do not wait for call anymore</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/java4less/rfax/FaxReceiverModem.html#openReception()">openReception</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;open port for reception</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;boolean</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/java4less/rfax/FaxReceiverModem.html#receiveFax()">receiveFax</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wait for Fax</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/java4less/rfax/FaxReceiverModem.html#run()">run</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;run thread, wait for call</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/java4less/rfax/FaxReceiverModem.html#serialEvent(SerialPortEvent)">serialEvent</A></B>(SerialPortEvent&nbsp;ev)</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;event listener</TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
<CODE>&nbsp;void</CODE></FONT></TD>
<TD><CODE><B><A HREF="../../../com/java4less/rfax/FaxReceiverModem.html#waitForFax()">waitForFax</A></B>()</CODE>

<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;wait for fax</TD>
</TR>
</TABLE>
&nbsp;<A NAME="methods_inherited_from_class_com.java4less.rfax.FaxModem"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
<TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
<TD><B>Methods inherited from class com.java4less.rfax.<A HREF="../../../com/java4less/rfax/FaxModem.html">FaxModem</A></B></TD>
</TR>
<TR BGCOLOR="white" CLASS="TableRowColor">
<TD><CODE><A HREF="../../../com/java4less/rfax/FaxModem.html#getEncoder()">getEncoder</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#getInitString()">getInitString</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#open(com.java4less.rfax.FaxProducer)">open</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#sendFax(java.lang.String)">sendFax</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#setInitString(java.lang.String)">setInitString</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#setPortName(java.lang.String)">setPortName</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#supportsClass1()">supportsClass1</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#supportsClass2()">supportsClass2</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#supportsClass20()">supportsClass20</A>, <A HREF="../../../com/java4less/rfax/FaxModem.html#waitFor(java.lang.String)">waitFor</A></CODE></TD>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -