5051525354555657
public String nextURLStringToken() throws SRCPUnsufficientDataException, SRCPWrongValueException { try { return URLDecoder.decode(nextStringToken(), "UTF-8"); } catch (UnsupportedEncodingException e) { throw new SRCPWrongValueException(e); } }
747576777879808182
public int nextIntToken(int min, int max) throws SRCPUnsufficientDataException, NumberFormatException, SRCPWrongValueException { int h = nextIntToken(); if (h < min || h > max) { throw new SRCPWrongValueException(); } return h; }
495051525354555657
if (!attribute_value.equals("")) { message[5] = attribute_value; } } catch (UnsupportedEncodingException e) { System.out.println("Can't encode UUID."); throw new SRCPWrongValueException(e); } return gmSession.set(sendTo, replyTo, message); }
4041424344454647
try { return session.getCommandChannel().send( "SET " + bus + " GM " + sendTo + " " + replyTo + " " + URLEncoder.encode(message, "UTF-8")); } catch (UnsupportedEncodingException e) { throw new SRCPWrongValueException(e); } }
6364656667686970
} return session.getCommandChannel().send( "SET " + bus + " GM " + sendTo + " " + replyTo + " " + messageBuf.toString()); } catch (UnsupportedEncodingException e) { throw new SRCPWrongValueException(e); } }