|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
CapiMessage
interface to handle CAPI messages.
© 2002 Holger Gräfe
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
Contact to author: holger.graefe@gmx.de
Project website: http://jcapi.sourceforge.net
Method Summary | |
int |
getAppID()
returns the identification number of the application this messages is assigned to. |
byte[] |
getB3Data()
returns the data block of a DATA_B3_IND or DATA_B3_REQ message. |
byte[] |
getBytes()
calculates the encoded message as a byte array. |
int |
getMessageID()
returns the identification number of this message. |
int |
getType()
returns the type of this message. |
void |
setB3Data(byte[] data)
assigns a data block to a DATA_B3_REQ message. |
Field Detail |
public static final int ALERT_REQ
public static final int ALERT_CONF
public static final int CONNECT_REQ
public static final int CONNECT_CONF
public static final int CONNECT_IND
public static final int CONNECT_RESP
public static final int CONNECT_ACTIVE_IND
public static final int CONNECT_ACTIVE_RESP
public static final int CONNECT_B3_ACTIVE_IND
public static final int CONNECT_B3_ACTIVE_RESP
public static final int CONNECT_B3_REQ
public static final int CONNECT_B3_CONF
public static final int CONNECT_B3_IND
public static final int CONNECT_B3_RESP
public static final int CONNECT_B3_T90_ACTIVE_IND
public static final int CONNECT_B3_T90_ACTIVE_RESP
public static final int DATA_B3_REQ
public static final int DATA_B3_CONF
public static final int DATA_B3_IND
public static final int DATA_B3_RESP
public static final int RESET_B3_REQ
public static final int RESET_B3_CONF
public static final int RESET_B3_IND
public static final int RESET_B3_RESP
public static final int DISCONNECT_B3_REQ
public static final int DISCONNECT_B3_CONF
public static final int DISCONNECT_B3_IND
public static final int DISCONNECT_B3_RESP
public static final int DISCONNECT_REQ
public static final int DISCONNECT_CONF
public static final int DISCONNECT_IND
public static final int DISCONNECT_RESP
public static final int INFO_REQ
public static final int INFO_CONF
public static final int INFO_IND
public static final int INFO_RESP
public static final int FACILITY_REQ
public static final int FACILITY_CONF
public static final int FACILITY_IND
public static final int FACILITY_RESP
public static final int SELECT_B_PROTOCOL_REQ
public static final int SELECT_B_PROTOCOL_CONF
public static final int MANUFACTURER_REQ
public static final int MANUFACTURER_CONF
public static final int MANUFACTURER_IND
public static final int MANUFACTURER_RESP
public static final int LISTEN_REQ
public static final int LISTEN_CONF
Method Detail |
public int getType()
public int getAppID()
public int getMessageID()
public byte[] getBytes()
public byte[] getB3Data() throws CapiException
Actual the data block of a DATA_B3_IND is copied to prevent the Java virtual machine from memory conflicts. Nevertheless the application has to respond to every DATA_B3_IND with a DATA_B3_RESP. Otherwise the native CAPI does not reuse the original memory block and would perhaps get a "buffer overrun".
public void setB3Data(byte[] data) throws CapiException
data
- the data block
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |