public String getShortMessage(String encoding) throws UnsupportedEncodingException { return shortMessage.getMessage(encoding); } public Address getSourceAddr() {
public String getShortMessage(String encoding) throws UnsupportedEncodingException { return shortMessage.getMessage(encoding); } public ByteBuffer getShortMessageData() {
public String getShortMessage() { return shortMessage.getMessage(); } public String getShortMessage(String encoding) throws UnsupportedEncodingException {
public String getShortMessage() { return shortMessage.getMessage(); } public String getShortMessage(String encoding) throws UnsupportedEncodingException {
public String getShortMessage(String encoding) throws UnsupportedEncodingException { return shortMessage.getMessage(encoding); } public ByteBuffer getShortMessageData() {
public String getShortMessage() { return shortMessage.getMessage(); } public String getShortMessage(String encoding) throws UnsupportedEncodingException {
public String getShortMessage() { return shortMessage.getMessage(); } public String getShortMessage(String encoding) throws UnsupportedEncodingException {
public String getShortMessage(String encoding) throws UnsupportedEncodingException { return shortMessage.getMessage(encoding); } public ByteBuffer getShortMessageData() {
/** * Returns the message. If the message was read from <code>ByteBuffer</code> * and no explicit encoding is set, the <code>Data.ENC_GSM7BIT</code> encoding * is used. Otherwise the encoding set is used. */ public String getMessage() { String useEncoding = encoding != null ? encoding : Data.ENC_GSM7BIT; String theMessage = null; try { theMessage = getMessage(useEncoding); } catch (UnsupportedEncodingException e) { // fall back to ascii try { theMessage = getMessage(Data.ENC_ASCII); } catch (UnsupportedEncodingException uee) { // ascii is always supported } } return theMessage; }
public String debugString() { String dbgs = "(sm: "; if (encoding != null) { dbgs += "enc: "; dbgs += encoding; dbgs += " "; } dbgs += "msg: "; if(encoding != null) { try { dbgs += getMessage(encoding); } catch(UnsupportedEncodingException e) { dbgs += getMessage(); } } else { dbgs += getMessage(); } dbgs += ") "; return dbgs; } }