Lines Matching defs:in
9 * by Oracle in the LICENSE file that accompanied this code.
11 * This code is distributed in the hope that it will be useful, but WITHOUT
14 * version 2 for more details (a copy is included in the LICENSE file that
31 * This class implements padding as specified in the W3 XML ENC standard.
52 * @param in the input buffer with the data to pad
53 * @param off the offset in <code>in</code> where the padding bytes
57 * @exception ShortBufferException if <code>in</code> is too small to hold
60 public void padWithLen(byte[] in, int off, int len)
63 if (in == null)
66 if ((off + len) > in.length) {
74 System.arraycopy(padding, 0, in, off, len);
84 * @param in the buffer with the padded data
85 * @param off the offset in <code>in</code> where the padded data starts
91 public int unpad(byte[] in, int off, int len) {
92 if ((in == null) ||
97 byte lastByte = in[off + len - 1];