Home | History | Annotate | Download | only in jutf7

Lines Matching defs:in

6  * "Software"), to deal in the Software without restriction, including 

13 * included in all copies or substantial portions of the Software.
18 * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
19 * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
20 * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
21 * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
64 protected CoderResult decodeLoop(ByteBuffer in, CharBuffer out) {
65 while (in.hasRemaining()) {
66 byte b = in.get();
70 return malformed(in);
73 return overflow(in);
80 return overflow(in);
81 CoderResult result = handleBase64(in, out, b);
90 return malformed(in);
95 return overflow(in);
103 private CoderResult overflow(ByteBuffer in) {
104 in.position(in.position() - 1);
110 * Decodes a byte in <i>base 64 mode</i>. Will directly write a character to
114 * @param in The input buffer
118 * in strict mode, null otherwise
120 private CoderResult handleBase64(ByteBuffer in, CharBuffer out, byte lastRead) {
135 return malformed(in);
138 result = malformed(in);
169 * @param in The input buffer
172 private CoderResult malformed(ByteBuffer in) {
173 in.position(in.position() - 1);
186 * Updates internal state to reflect the decoder is no longer in <i>base 64