Lines Matching defs:body
134 * @param body message body
143 int language, int encoding, String body, int cmasCategory, int responseType,
148 if (body != null) {
150 encodeBody(encoding, body, true, cmasBos);
187 * @param body the message body
191 int priority, int language, int encoding, String body) throws Exception {
196 encodeBody(encoding, body, false, bos);
202 * Append the message length, encoding, and body to the BearerData output stream.
206 * @param body the message body
211 private static void encodeBody(int encoding, String body, boolean isCmasRecord,
214 int charCount = body.length();
231 bos.write(7, body.charAt(i));
238 byte[] encodedBody = GsmAlphabet.stringToGsm7BitPacked(body);
267 int charCount = body.length();
279 bos.write(6, ((int) body.charAt(i) - 0x20));
287 encodedBody = body.getBytes("UTF-16BE");
291 encodedBody = body.getBytes("Shift_JIS");
295 encodedBody = body.getBytes("KSC5601");
299 encodedBody = body.getBytes("ISO-8859-8");
304 encodedBody = body.getBytes("ISO-8859-1");
307 int charCount = body.length(); // use actual char count for num fields
395 private static void doTestCmasBroadcast(int serviceCategory, int messageClass, String body)
399 UserData.ENCODING_7BIT_ASCII, body, -1, -1, -1, -1, -1);
407 assertEquals(body, cbMessage.getMessageBody());