/libcore/luni/src/main/java/javax/net/ssl/ |
H A D | DistinguishedNameParser.java | 34 private int pos; field in class:DistinguishedNameParser 56 for (; pos < length && chars[pos] == ' '; pos++) { 58 if (pos == length) { 63 beg = pos; 66 pos++; 67 for (; pos < length && chars[pos] != '=' && chars[pos] ! [all...] |
/libcore/luni/src/main/java/org/apache/harmony/security/x509/ |
H A D | DNParser.java | 46 private int pos; field in class:DNParser 74 for (; pos < chars.length && chars[pos] == ' '; pos++) { 76 if (pos == chars.length) { 81 beg = pos; 84 pos++; 85 for (; pos < chars.length && chars[pos] != '=' && chars[pos] ! [all...] |
/libcore/luni/src/main/java/java/io/ |
H A D | ByteArrayInputStream.java | 36 protected int pos; field in class:ByteArrayInputStream 77 pos = offset; 85 * @return {@code count - pos} 89 return count - pos; 115 mark = pos; 141 return pos < count ? buf[pos++] & 0xFF : -1; 148 if (this.pos >= this.count) { 155 int copylen = this.count - pos < byteCount ? this.count - pos [all...] |
H A D | StringReader.java | 33 private int pos; field in class:StringReader 91 markpos = pos; 126 if (pos != count) { 127 return str.charAt(pos++); 152 if (pos == this.count) { 155 int end = pos + count > this.count ? this.count : pos + count; 156 str.getChars(pos, end, buffer, offset); 157 int read = end - pos; 158 pos [all...] |
H A D | CharArrayReader.java | 36 protected int pos; field in class:CharArrayReader 87 this.pos = offset; 142 markedPos = pos; 179 if (pos == count) { 182 return buf[pos++]; 202 if (pos < this.count) { 203 int bytesRead = pos + count > this.count ? this.count - pos : count; 204 System.arraycopy(this.buf, pos, buffer, offset, bytesRead); 205 pos [all...] |
H A D | StringBufferInputStream.java | 43 protected int pos; field in class:StringBufferInputStream 65 return count - pos; 78 return pos < count ? buffer.charAt(pos++) & 0xFF : -1; 90 int copylen = count - pos < byteCount ? count - pos : byteCount; 92 buffer[byteOffset + i] = (byte) this.buffer.charAt(pos + i); 94 pos += copylen; 103 pos = 0; 121 if (this.count - pos < charCoun [all...] |
H A D | PushbackInputStream.java | 40 protected int pos; field in class:PushbackInputStream 57 pos = 1; 81 pos = size; 89 return buf.length - pos + in.available(); 141 if (pos < buf.length) { 142 return (buf[pos++] & 0xFF); 173 if (pos < buf.length) { 174 copyLength = (buf.length - pos >= byteCount) ? byteCount : buf.length - pos; 175 System.arraycopy(buf, pos, buffe [all...] |
H A D | BufferedReader.java | 49 * mark pos end</pre> 51 * last readable character. When {@code pos == end}, the buffer is empty and 54 * <p>Mark is the value pos will be set to on calls to {@link #reset}. Its 55 * value is in the range {@code [0...pos]}. If the mark is {@code -1}, the 58 * <p>MarkLimit limits the distance between the mark and the pos. When this 65 private int pos; field in class:BufferedReader 135 * the buffer still contains data; ie. if {@code pos < end}. 141 // assert(pos == end); 143 if (mark == -1 || (pos - mark >= markLimit)) { 148 pos [all...] |
H A D | PushbackReader.java | 40 int pos; field in class:PushbackReader 53 pos = 1; 73 pos = size; 140 if (pos < buf.length) { 141 return buf[pos++]; 181 if (pos < buf.length) { 182 copyLength = (buf.length - pos >= count) ? count : buf.length 183 - pos; 184 System.arraycopy(buf, pos, buffer, newOffset, copyLength); 188 pos [all...] |
H A D | BufferedWriter.java | 45 private int pos; field in class:BufferedWriter 138 if (pos > 0) { 139 out.write(buf, 0, pos); 141 pos = 0; 191 if (pos == 0 && count >= this.buf.length) { 195 int available = this.buf.length - pos; 200 System.arraycopy(buffer, offset, this.buf, pos, available); 201 pos += available; 203 if (pos == this.buf.length) { 205 pos [all...] |
H A D | BufferedInputStream.java | 70 protected int pos; field in class:BufferedInputStream 121 return count - pos + localIn.available(); 147 if (markpos == -1 || (pos - markpos >= marklimit)) { 152 pos = 0; 173 pos -= markpos; 175 int bytesread = localIn.read(localBuf, pos, localBuf.length - pos); 176 count = bytesread <= 0 ? pos : pos + bytesread; 196 markpos = 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/luni/src/main/java/java/sql/ |
H A D | Blob.java | 47 * offset {@code pos}, and returns them as a binary stream. 54 public InputStream getBinaryStream(long pos, long length) throws SQLException; argument 59 * @param pos 65 * at {@code pos} and is up to {@code length} bytes long. 69 public byte[] getBytes(long pos, int length) throws SQLException; argument 120 * @param pos 129 public OutputStream setBinaryStream(long pos) throws SQLException; argument 135 * @param pos 146 public int setBytes(long pos, byte[] theBytes) throws SQLException; argument 152 * @param pos 168 setBytes(long pos, byte[] theBytes, int offset, int len) argument [all...] |
H A D | Clob.java | 60 * @param pos 68 public String getSubString(long pos, int length) throws SQLException; argument 114 * @param pos 121 public OutputStream setAsciiStream(long pos) throws SQLException; argument 127 * @param pos 134 public Writer setCharacterStream(long pos) throws SQLException; argument 140 * @param pos 148 public int setString(long pos, String str) throws SQLException; argument 154 * @param pos 166 public int setString(long pos, Strin argument 193 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/luni/src/main/java/java/util/jar/ |
H A D | ManifestReader.java | 41 private int pos; field in class:ManifestReader 54 this.endOfMainSection = pos; 58 int mark = pos; 84 chunks.put(entryNameValue, new Manifest.Chunk(mark, pos)); 85 mark = pos; 114 int mark = pos; 116 while (pos < buf.length) { 117 if (buf[pos++] != ':') { 121 String nameString = new String(buf, mark, pos - mark - 1, StandardCharsets.US_ASCII); 123 if (buf[pos [all...] |
/libcore/luni/src/main/java/libcore/io/ |
H A D | StrictLineReader.java | 53 * Buffered data is stored in {@code buf}. As long as no exception occurs, 0 <= pos <= end 54 * and the data in the range [pos, end) is buffered for reading. At end of input, if there is 55 * an unterminated line, we set end == -1, otherwise end == pos. If the underlying 56 * {@code InputStream} throws an {@code IOException}, end may remain as either pos or -1. 59 private int pos; field in class:StrictLineReader 159 // throw again if that happens; thus we need to handle end == -1 as well as end == pos. 160 if (pos >= end) { 164 for (int i = pos; i != end; ++i) { 166 int lineEnd = (i != pos && buf[i - 1] == CR) ? i - 1 : i; 167 String res = new String(buf, pos, lineEn [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/harmony-tests/src/test/java/org/apache/harmony/tests/javax/net/ssl/ |
H A D | SSLEngineResultTest.java | 95 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; 102 for (int n = 0; n < pos.length; n++) { 103 for (int l = 0; l < pos.length; l++) { 105 enHS[j], pos[n], pos[l]); 106 assertEquals("Incorrect bytesConsumed", pos[n], 118 int[] pos = { 0, 1, 1000, Integer.MAX_VALUE, (Integer.MAX_VALUE - 1) }; 125 for (int n = 0; n < pos.length; n++) { 126 for (int l = 0; l < pos.length; ++l) { 128 enHS[j], pos[ [all...] |
/libcore/luni/src/main/java/java/text/ |
H A D | ParsePosition.java | 56 ParsePosition pos = (ParsePosition) object; 57 return currentPosition == pos.currentPosition 58 && errorIndex == pos.errorIndex;
|
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/ |
H A D | NumberFormatTest.java | 36 FieldPosition pos; 41 pos = new FieldPosition(0); 42 out = format.format(new Long(Long.MAX_VALUE), new StringBuffer(), pos); 46 pos = new FieldPosition(0); 47 out = format.format(new Long(Long.MIN_VALUE), new StringBuffer(), pos); 51 pos = new FieldPosition(0); 53 .valueOf(Long.MAX_VALUE)), new StringBuffer(), pos); 57 pos = new FieldPosition(0); 59 .valueOf(Long.MIN_VALUE)), new StringBuffer(), pos); 64 pos [all...] |