/** * Sets the message a new value. Default encoding <code>Data.ENC_GSM7BIT</code> * is used. * @param message the message * @exception WrongLengthOfStringException thrown when the message * too short or long */ public void setMessage(String message) throws WrongLengthOfStringException { try { setMessage(message, Data.ENC_GSM7BIT); } catch (UnsupportedEncodingException e) { try { setMessage(message, Data.ENC_ASCII); } catch (UnsupportedEncodingException uee) { // ascii always supported } } }
public void setShortMessage(String value, String encoding) throws WrongLengthOfStringException, UnsupportedEncodingException { shortMessage.setMessage(value, encoding); setSmLength((short) shortMessage.getLength()); }
public void setShortMessage(String value, String encoding) throws WrongLengthOfStringException, UnsupportedEncodingException { shortMessage.setMessage(value, encoding); setSmLength((short) shortMessage.getLength()); }
public void setShortMessage(String value, String encoding) throws WrongLengthOfStringException, UnsupportedEncodingException { shortMessage.setMessage(value, encoding); setSmLength((short) shortMessage.getLength()); }
public void setShortMessage(String value, String encoding) throws WrongLengthOfStringException, UnsupportedEncodingException { shortMessage.setMessage(value, encoding); setSmLength((short) shortMessage.getLength()); }
public void setShortMessage(String value) throws WrongLengthOfStringException { shortMessage.setMessage(value); setSmLength((short) shortMessage.getLength()); }
public void setShortMessage(String value) throws WrongLengthOfStringException { shortMessage.setMessage(value); setSmLength((short) shortMessage.getLength()); }
public void setShortMessage(String value) throws WrongLengthOfStringException { shortMessage.setMessage(value); setSmLength((short) shortMessage.getLength()); }
public void setShortMessage(String value) throws WrongLengthOfStringException { shortMessage.setMessage(value); setSmLength((short) shortMessage.getLength()); }