org.marre.sms.transport.ucp
Class UcpMsg
java.lang.Object
org.marre.sms.transport.ucp.UcpMsg
- Direct Known Subclasses:
- UcpSeries50, UCPSeries60
- public abstract class UcpMsg
- extends java.lang.Object
Baseclass for UcpMsg.
- Version:
- $Id: UcpMsg.java,v 1.7 2005/11/26 16:37:14 c95men Exp $
- Author:
- Markus Eriksson
Field Summary |
protected static byte |
ETX
|
protected char |
or_
|
protected byte |
ot_
|
protected static byte |
STX
|
protected int |
trn_
|
protected java.lang.String[] |
ucpFields_
|
Constructor Summary |
UcpMsg(int nFields)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STX
protected static final byte STX
- See Also:
- Constant Field Values
ETX
protected static final byte ETX
- See Also:
- Constant Field Values
ucpFields_
protected java.lang.String[] ucpFields_
or_
protected char or_
trn_
protected int trn_
ot_
protected byte ot_
UcpMsg
public UcpMsg(int nFields)
setField
public void setField(int field,
java.lang.String value)
getField
public java.lang.String getField(int field)
setOR
protected void setOR(char or)
setOT
protected void setOT(byte ot)
setTRN
public void setTRN(int trn)
calcChecksum
public byte calcChecksum(java.lang.String data)
buildCommand
public java.lang.String buildCommand()
writeTo
public void writeTo(java.io.OutputStream os)
throws java.io.IOException
- Throws:
java.io.IOException
getCommand
public byte[] getCommand()
Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.