/** * Encodes the parameter using the standard URI encoding mechanism. * * @param characterSet * The supported character encoding. * @return The encoded string. * @throws IOException */ public String encode(CharacterSet characterSet) throws IOException { final StringBuilder sb = new StringBuilder(); encode(sb, characterSet); return sb.toString(); }
/** * Encodes the parameter as a string. * * @param characterSet * The character set to use. * @return The encoded string? * @throws IOException */ public String encode(CharacterSet characterSet) throws IOException { StringBuilder sb = new StringBuilder(); encode(sb, characterSet); return sb.toString(); }
/** * Encodes the parameter as a string. * * @param characterSet * The character set to use. * @return The encoded string? * @throws IOException */ public String encode(CharacterSet characterSet) throws IOException { StringBuilder sb = new StringBuilder(); encode(sb, characterSet); return sb.toString(); }
/** * URL encodes the form. * * @param characterSet * The supported character encoding. * @param separator * The separator character to append between parameters. * @return The encoded form. * @throws IOException */ public String encode(CharacterSet characterSet, char separator) throws IOException { final StringBuilder sb = new StringBuilder(); for (int i = 0; i < size(); i++) { if (i > 0) { sb.append(separator); } get(i).encode(sb, characterSet); } return sb.toString(); }
/** * URL encodes the form. * * @param characterSet * The supported character encoding. * @param separator * The separator character to append between parameters. * @return The encoded form. * @throws IOException */ public String encode(CharacterSet characterSet, char separator) throws IOException { StringBuilder sb = new StringBuilder(); for (int i = 0; i < size(); i++) { if (i > 0) { sb.append(separator); } get(i).encode(sb, characterSet); } return sb.toString(); }
/** * URL encodes the form. * * @param characterSet * The supported character encoding. * @param separator * The separator character to append between parameters. * @return The encoded form. * @throws IOException */ public String encode(CharacterSet characterSet, char separator) throws IOException { StringBuilder sb = new StringBuilder(); for (int i = 0; i < size(); i++) { if (i > 0) { sb.append(separator); } get(i).encode(sb, characterSet); } return sb.toString(); }