Home | History | Annotate | Download | only in net

Lines Matching refs:to

10  * Unless required by applicable law or agreed to in writing, software
26 * Implements methods common to all codecs defined in RFC 1522.
31 * describes techniques to allow the encoding of non-ASCII text in
33 * is unlikely to confuse existing message handling software.
53 * Applies an RFC 1522 compliant encoding scheme to the given string of text with the
54 * given charset. This method constructs the "encoded-word" header common to all the
56 * class to perform the specific enconding.
58 * @param text a string to encode
59 * @param charset a charset to be used
89 * Applies an RFC 1522 compliant decoding scheme to the given string of text. This method
90 * processes the "encoded-word" header common to all the RFC 1522 codecs and then invokes
91 * {@link #doEncoding(byte [])} method of a concrete class to perform the specific deconding.
93 * @param text a string to decode
111 int to = text.indexOf("?", from);
112 if ((to == -1) || (to == termnator)) {
115 String charset = text.substring(from, to);
119 from = to + 1;
120 to = text.indexOf("?", from);
121 if ((to == -1) || (to == termnator)) {
124 String encoding = text.substring(from, to);
129 from = to + 1;
130 to = text.indexOf("?", from);
131 byte[] data = text.substring(from, to).getBytes(StringEncodings.US_ASCII);
137 * Returns the codec name (referred to as encoding in the RFC 1522)
146 * @param bytes Data to be encoded
158 * @param bytes Data to be decoded