/libcore/ojluni/src/main/java/java/text/ |
H A D | StringCharacterIterator.java | 57 // invariant: begin <= pos <= end 58 private int pos; field in class:StringCharacterIterator 72 * @param pos Initial iterator position 74 public StringCharacterIterator(String text, int pos) argument 76 this(text, 0, text.length(), pos); 86 * @param pos Initial iterator position 88 public StringCharacterIterator(String text, int begin, int end, int pos) { argument 96 if (pos < begin || pos > end) 101 this.pos [all...] |
/libcore/ojluni/src/main/java/java/io/ |
H A D | StringBufferInputStream.java | 58 protected int pos; field in class:StringBufferInputStream 92 return (pos < count) ? (buffer.charAt(pos++) & 0xFF) : -1; 118 if (pos >= count) { 121 if (pos + len > count) { 122 len = count - pos; 130 b[off++] = (byte)s.charAt(pos++); 147 if (n > count - pos) { 148 n = count - pos; 150 pos [all...] |
H A D | ByteArrayInputStream.java | 51 * stream; element <code>buf[pos]</code> is 61 * will be <code>buf[pos]</code>. 63 protected int pos; field in class:ByteArrayInputStream 96 * The initial value of <code>pos</code> 105 this.pos = 0; 112 * buffer array. The initial value of <code>pos</code> 125 this.pos = offset; 144 return (pos < count) ? (buf[pos++] & 0xff) : -1; 150 * If <code>pos</cod [all...] |
H A D | CharArrayReader.java | 40 protected int pos; field in class:CharArrayReader 57 this.pos = 0; 84 this.pos = offset; 103 if (pos >= count) 106 return buf[pos++]; 130 if (pos >= count) { 133 if (pos + len > count) { 134 len = count - pos; 139 System.arraycopy(buf, pos, b, off, len); 140 pos [all...] |
H A D | BufferedInputStream.java | 90 * than <code>count</code>, then <code>buf[pos]</code> 99 protected int pos; field in class:BufferedInputStream 102 * The value of the <code>pos</code> field at the time the last 106 * in the range <code>-1</code> through <code>pos</code>. 115 * through <code>buf[pos-1]</code> must remain 119 * of <code>count</code>, <code>pos</code>, 122 * between <code>pos</code> and <code>markpos</code> 126 * @see java.io.BufferedInputStream#pos 134 * Whenever the difference between <code>pos</code> 203 * hence pos > coun [all...] |
H A D | PushbackReader.java | 43 private int pos; field in class:PushbackReader 58 this.pos = size; 87 if (pos < buf.length) 88 return buf[pos++]; 118 int avail = buf.length - pos; 122 System.arraycopy(buf, pos, cbuf, off, avail); 123 pos += avail; 154 if (pos == 0) 156 buf[--pos] = (char) c; 177 if (len > pos) [all...] |
H A D | PushbackInputStream.java | 61 * be read. When the buffer is empty, <code>pos</code> is equal to 62 * <code>buf.length</code>; when the buffer is full, <code>pos</code> is 67 protected int pos; field in class:PushbackInputStream 97 this.pos = size; 136 if (pos < buf.length) { 137 return buf[pos++] & 0xff; 175 int avail = buf.length - pos; 180 System.arraycopy(buf, pos, b, off, avail); 181 pos += avail; 208 if (pos [all...] |
/libcore/ojluni/src/main/java/sun/misc/ |
H A D | IOUtils.java | 54 int pos = 0; 55 while (pos < length) { 57 if (pos >= output.length) { // Only expand when there's no room 58 bytesToRead = Math.min(length - pos, output.length + 1024); 59 if (output.length < pos + bytesToRead) { 60 output = Arrays.copyOf(output, pos + bytesToRead); 63 bytesToRead = output.length - pos; 65 int cc = is.read(output, pos, bytesToRead); 70 if (output.length != pos) { 71 output = Arrays.copyOf(output, pos); [all...] |
/libcore/support/src/test/java/tests/support/ |
H A D | Support_ASimpleOutputStream.java | 18 public int pos; field in class:Support_ASimpleOutputStream 36 pos = 0; 82 if (pos < size) { 83 buf[pos] = (byte)(oneByte & 255); 84 pos++; 91 byte[] toReturn = new byte[pos]; 92 System.arraycopy(buf, 0, toReturn, 0, pos); 97 return new String(buf, 0, pos);
|
H A D | Support_StringReader.java | 28 private int pos = 0; field in class:Support_StringReader 84 markpos = pos; 121 if (pos != count) { 122 return str.charAt(pos++); 154 if (pos == this.count) { 157 int end = pos + count > this.count ? this.count : pos 159 str.getChars(pos, end, buf, offset); 160 int read = end - pos; 161 pos [all...] |
H A D | Support_ASimpleInputStream.java | 18 public int pos; field in class:Support_ASimpleInputStream 36 pos = 0; 41 pos = 0; 59 return len - pos; 67 if (pos < len) { 68 int res = buf[pos]; 69 pos++;
|
H A D | Support_ASimpleReader.java | 18 public int pos; field in class:Support_ASimpleReader 36 pos = 0; 52 return len > pos; 60 int available = len - pos; 63 System.arraycopy(buf, pos, dest, offset, readable); 64 pos += readable;
|
H A D | Support_ASimpleWriter.java | 18 public int pos; field in class:Support_ASimpleWriter 36 pos = 0; 63 System.arraycopy(src, offset, buf, pos, count); 64 pos += count; 66 pos = size; 72 byte[] toReturn = new byte[pos]; 73 System.arraycopy(buf, 0, toReturn, 0, pos); 78 return new String(buf, 0, pos);
|
/libcore/ojluni/src/main/java/java/sql/ |
H A D | Blob.java | 78 * consecutive bytes starting at position <code>pos</code>. 80 * @param pos the ordinal position of the first byte in the 88 * byte at position <code>pos</code> 90 * <code>BLOB</code> value; if pos is less than 1 or length is 97 byte[] getBytes(long pos, int length) throws SQLException; argument 156 * <code>pos</code>, and returns the number of bytes written. 159 * <code>pos</code>. If the end of the <code>Blob</code> value is reached 163 * <b>Note:</b> If the value specified for <code>pos</code> 169 * @param pos the position in the <code>BLOB</code> object at which 175 * <code>BLOB</code> value or if pos i 181 setBytes(long pos, byte[] bytes) argument 217 setBytes(long pos, byte[] bytes, int offset, int len) argument 246 setBinaryStream(long pos) argument 303 getBinaryStream(long pos, long length) argument [all...] |
H A D | Clob.java | 79 * <code>pos</code> and has up to <code>length</code> consecutive 82 * @param pos the first character of the substring to be extracted. 89 * <code>CLOB</code> value; if pos is less than 1 or length is 95 String getSubString(long pos, int length) throws SQLException; argument 140 * <code>CLOB</code> value or if pos is less than 1 171 * <code>pos</code>. The string will overwrite the existing characters 173 * <code>pos</code>. If the end of the <code>Clob</code> value is reached 177 * <b>Note:</b> If the value specified for <code>pos</code> 183 * @param pos the position at which to start writing to the <code>CLOB</code> 190 * <code>CLOB</code> value or if pos i 196 setString(long pos, String str) argument 228 setString(long pos, String str, int offset, int len) argument 257 setAsciiStream(long pos) argument 287 setCharacterStream(long pos) argument 346 getCharacterStream(long pos, long length) argument [all...] |
/libcore/json/src/main/java/org/json/ |
H A D | JSONTokener.java | 71 private int pos; field in class:JSONTokener 110 pos--; 116 while (pos < in.length()) { 117 int c = in.charAt(pos++); 126 if (pos == in.length()) { 130 char peek = in.charAt(pos); 134 pos++; 135 int commentEnd = in.indexOf("*/", pos); 139 pos = commentEnd + 2; 144 pos [all...] |
/libcore/ojluni/src/main/java/sun/security/util/ |
H A D | DerInputBuffer.java | 70 System.arraycopy(buf, pos, retval, 0, len); 75 return pos; 85 if (pos >= count) 88 return buf[pos]; 110 if (this.buf[this.pos + i] != other.buf[other.pos + i]) { 126 int p = pos; 136 count = pos + len; 157 System.arraycopy(buf, pos, bytes, 0, len); 200 int numOfPadBits = buf[pos]; [all...] |
/libcore/ojluni/src/main/java/java/nio/ |
H A D | ByteBufferAsCharBuffer.java | 37 int mark, int pos, int lim, int cap, 39 super(mark, pos, lim, cap); 57 int pos = this.position(); 59 assert (pos <= lim); 60 int rem = (pos <= lim ? lim - pos : 0); 61 int off = (pos << 1) + offset; 137 int pos = position(); 139 assert (pos <= lim); 140 int rem = (pos < 36 ByteBufferAsCharBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
H A D | ByteBufferAsDoubleBuffer.java | 38 int mark, int pos, int lim, int cap, 40 super(mark, pos, lim, cap); 58 int pos = this.position(); 60 assert (pos <= lim); 61 int rem = (pos <= lim ? lim - pos : 0); 62 int off = (pos << 3) + offset; 134 int pos = position(); 136 assert (pos <= lim); 137 int rem = (pos < 37 ByteBufferAsDoubleBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
H A D | ByteBufferAsFloatBuffer.java | 37 int mark, int pos, int lim, int cap, 39 super(mark, pos, lim, cap); 57 int pos = this.position(); 59 assert (pos <= lim); 60 int rem = (pos <= lim ? lim - pos : 0); 61 int off = (pos << 2) + offset; 133 int pos = position(); 135 assert (pos <= lim); 136 int rem = (pos < 36 ByteBufferAsFloatBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
H A D | ByteBufferAsIntBuffer.java | 37 int mark, int pos, int lim, int cap, 39 super(mark, pos, lim, cap); 57 int pos = this.position(); 59 assert (pos <= lim); 60 int rem = (pos <= lim ? lim - pos : 0); 61 int off = (pos << 2) + offset; 133 int pos = position(); 135 assert (pos <= lim); 136 int rem = (pos < 36 ByteBufferAsIntBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
H A D | ByteBufferAsLongBuffer.java | 37 int mark, int pos, int lim, int cap, 39 super(mark, pos, lim, cap); 57 int pos = this.position(); 59 assert (pos <= lim); 60 int rem = (pos <= lim ? lim - pos : 0); 61 int off = (pos << 3) + offset; 133 int pos = position(); 135 assert (pos <= lim); 136 int rem = (pos < 36 ByteBufferAsLongBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
H A D | ByteBufferAsShortBuffer.java | 37 int mark, int pos, int lim, int cap, 39 super(mark, pos, lim, cap); 57 int pos = this.position(); 59 assert (pos <= lim); 60 int rem = (pos <= lim ? lim - pos : 0); 61 int off = (pos << 1) + offset; 132 int pos = position(); 134 assert (pos <= lim); 135 int rem = (pos < 36 ByteBufferAsShortBuffer(ByteBuffer bb, int mark, int pos, int lim, int cap, int off, ByteOrder order) argument [all...] |
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/io/ |
H A D | PipedInputStreamTest.java | 27 PipedOutputStream pos; field in class:PipedInputStreamTest.PWriter 33 pos.write(bytes); 44 pos = pout; 58 PipedOutputStream pos; field in class:PipedInputStreamTest 80 pos = new PipedOutputStream(); 83 pis.connect(pos); 84 t = new Thread(pw = new PWriter(pos, 1000)); 94 pos.close(); 105 pos = new PipedOutputStream(); 107 pis.connect(pos); 334 Worker(PipedOutputStream pos) argument [all...] |
/libcore/ojluni/src/main/java/sun/nio/ch/ |
H A D | IOUtil.java | 54 int pos = src.position(); 56 assert (pos <= lim); 57 int rem = (pos <= lim ? lim - pos : 0); 63 src.position(pos); 68 src.position(pos + n); 80 int pos = bb.position(); 82 assert (pos <= lim); 83 int rem = (pos <= lim ? lim - pos [all...] |