Searched defs:end (Results 1 - 25 of 56) sorted by relevance

123

/libcore/ojluni/src/main/java/java/io/
H A DOptionalDataException.java29 * unread primitive data, or the end of data belonging to a serialized
39 * <li>An attempt was made to read past the end of data consumable by a
64 OptionalDataException(boolean end) { argument
66 eof = end;
H A DStringWriter.java151 * end)</tt> when <tt>csq</tt> is not <tt>null</tt>, behaves in
155 * out.write(csq.subSequence(start, end).toString()) </pre>
166 * @param end
173 * If <tt>start</tt> or <tt>end</tt> are negative, <tt>start</tt>
174 * is greater than <tt>end</tt>, or <tt>end</tt> is greater than
179 public StringWriter append(CharSequence csq, int start, int end) { argument
181 write(cs.subSequence(start, end).toString());
H A DWriter.java236 * end)</tt> when <tt>csq</tt> is not <tt>null</tt> behaves in exactly the
240 * out.write(csq.subSequence(start, end).toString()) </pre>
251 * @param end
258 * If <tt>start</tt> or <tt>end</tt> are negative, <tt>start</tt>
259 * is greater than <tt>end</tt>, or <tt>end</tt> is greater than
267 public Writer append(CharSequence csq, int start, int end) throws IOException { argument
269 write(cs.subSequence(start, end).toString());
H A DCharArrayWriter.java175 * end)</tt> when <tt>csq</tt> is not <tt>null</tt>, behaves in
179 * out.write(csq.subSequence(start, end).toString()) </pre>
190 * @param end
197 * If <tt>start</tt> or <tt>end</tt> are negative, <tt>start</tt>
198 * is greater than <tt>end</tt>, or <tt>end</tt> is greater than
203 public CharArrayWriter append(CharSequence csq, int start, int end) { argument
204 String s = (csq == null ? "null" : csq).subSequence(start, end).toString();
/libcore/ojluni/src/main/java/java/lang/
H A DAppendable.java78 * end)</tt> when <tt>csq</tt> is not <tt>null</tt>, behaves in
82 * out.append(csq.subSequence(start, end)) </pre>
93 * @param end
100 * If <tt>start</tt> or <tt>end</tt> are negative, <tt>start</tt>
101 * is greater than <tt>end</tt>, or <tt>end</tt> is greater than
107 Appendable append(CharSequence csq, int start, int end) throws IOException; argument
H A DCharSequence.java92 * ends with the <code>char</code> value at index <tt>end - 1</tt>. The length
94 * returned sequence is <tt>end - start</tt>, so if <tt>start == end</tt>
98 * @param end the end index, exclusive
103 * if <tt>start</tt> or <tt>end</tt> are negative,
104 * if <tt>end</tt> is greater than <tt>length()</tt>,
105 * or if <tt>start</tt> is greater than <tt>end</tt>
107 CharSequence subSequence(int start, int end); argument
H A DStringBuilder.java44 * <code>append</code> method always adds these characters at the end
191 public StringBuilder append(CharSequence s, int start, int end) { argument
192 super.append(s, start, end);
250 public StringBuilder delete(int start, int end) { argument
251 super.delete(start, end);
266 public StringBuilder replace(int start, int end, String str) { argument
267 super.replace(start, end, str);
319 int start, int end)
321 super.insert(dstOffset, s, start, end);
318 insert(int dstOffset, CharSequence s, int start, int end) argument
/libcore/ojluni/src/main/java/java/util/regex/
H A DMatchResult.java88 public int end(); method in interface:MatchResult
96 * the expression <i>m.</i><tt>end(0)</tt> is equivalent to
97 * <i>m.</i><tt>end()</tt>. </p>
114 public int end(int group); method in interface:MatchResult
121 * <i>s.</i><tt>substring(</tt><i>m.</i><tt>start(),</tt>&nbsp;<i>m.</i><tt>end())</tt>
143 * <i>s.</i><tt>substring(</tt><i>m.</i><tt>start(</tt><i>g</i><tt>),</tt>&nbsp;<i>m.</i><tt>end(</tt><i>g</i><tt>))</tt>
/libcore/ojluni/src/main/java/java/text/
H A DCharacterIteratorFieldDelegate.java56 public void formatted(Format.Field attr, Object value, int start, int end, argument
58 if (start != end) {
71 end - start, as.length() - aStart) +
82 if (size < end) {
86 buffer.substring(aStart, end));
90 size = end;
96 int start, int end, StringBuffer buffer) {
97 formatted(attr, value, start, end, buffer);
95 formatted(int fieldID, Format.Field attr, Object value, int start, int end, StringBuffer buffer) argument
H A DFormat.java164 * then its indices are set to the beginning and end of the first such
216 * use all characters up to the end of the string), and the parsed
385 * @param end End of the field, will be >= start and <= buffer.length()
390 int end, StringBuffer buffer);
399 * @param end End of the field, will be >= start and <= buffer.length()
404 int start, int end, StringBuffer buffer);
389 formatted(Format.Field attr, Object value, int start, int end, StringBuffer buffer) argument
403 formatted(int fieldID, Format.Field attr, Object value, int start, int end, StringBuffer buffer) argument
H A DStringCharacterIterator.java56 private int end; field in class:StringCharacterIterator
57 // invariant: begin <= pos <= end
85 * @param end Index of the character following the last character
88 public StringCharacterIterator(String text, int begin, int end, int pos) { argument
93 if (begin < 0 || begin > end || end > text.length())
96 if (pos < begin || pos > end)
100 this.end = end;
118 this.end
[all...]
/libcore/ojluni/src/main/java/java/nio/channels/spi/
H A DAbstractInterruptibleChannel.java46 * class must invoke the {@link #begin begin} and {@link #end end} methods
48 * indefinitely. In order to ensure that the {@link #end end} method is always
59 * end(completed);
62 * <p> The <tt>completed</tt> argument to the {@link #end end} method tells
75 * {@link #end end} method will throw the appropriate exception.
151 * <p> This method should be invoked in tandem with the {@link #end en
196 protected final void end(boolean completed) method in class:AbstractInterruptibleChannel
[all...]
H A DAbstractSelector.java42 * invoke the {@link #begin begin} and {@link #end end} methods before and
44 * indefinitely. In order to ensure that the {@link #end end} method is always
54 * end();
196 * <p> This method should be invoked in tandem with the {@link #end end}
220 * Marks the end of an I/O operation that might block indefinitely.
227 protected final void end() { method in class:AbstractSelector
/libcore/ojluni/src/main/java/java/util/stream/
H A DSink.java40 * {@code end()} method. After calling {@code end()}, you should not call
49 * it to the active state, and the {@code end()} method transitions it back into
94 * {@code begin()}, {@code end()}, and {@code cancellationRequested()} to
121 * before sending any data to the sink. After calling {@link #end()},
139 default void end() {} method in interface:Sink
238 * sinks. The {@code begin}, {@code end}, and
258 public void end() { method in class:Sink.ChainedReference
259 downstream.end();
270 * sinks. The {@code begin}, {@code end}, an
290 public void end() { method in class:Sink.ChainedInt
322 public void end() { method in class:Sink.ChainedLong
354 public void end() { method in class:Sink.ChainedDouble
[all...]
/libcore/ojluni/src/main/native/
H A DFileInputStream.c73 jlong end = jlong_zero; local
85 } else if ((end = IO_Lseek(fd, toSkip, (jint)SEEK_CUR)) == -1) {
88 return (end - cur);
96 // negative if we're positioned past the end of the file. We must return 0
H A Dcanonicalize_md.c209 /* Something's bogus in the original path, so remove names from the end
211 char *p, *end, *r = NULL; local
219 end = path + strlen(path);
221 for (p = end; p > path;) {
230 *p = (p == end) ? '\0' : '/';
/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
H A DSupport_Format.java38 String text, Format.Field field, int begin, int end) {
52 if (begin != pos.getBeginIndex() || end != pos.getEndIndex()) {
53 assertEquals(field + " " + begin + ".." + end,
79 * which stores start and end indexes and an attribute this range has
85 int end = iterator.getRunLimit();
91 result.add(new FieldContainer(start, end, attribute, value));
92 // System.out.println(start + " " + end + ": " + attribute + ",
95 // end +"," + attribute+ "," + value+ "));");
97 iterator.setIndex(end);
104 final int end; field in class:Support_Format.FieldContainer
37 t_FormatWithField(int count, Format format, Object object, String text, Format.Field field, int begin, int end) argument
109 FieldContainer(int start, int end, Attribute attribute) argument
114 FieldContainer(int start, int end, Attribute attribute, int value) argument
119 FieldContainer(int start, int end, Attribute attribute, Object value) argument
[all...]
/libcore/ojluni/src/main/java/java/nio/
H A DStringCharBuffer.java35 StringCharBuffer(CharSequence s, int start, int end) { // package-private argument
36 super(-1, start, end, s.length());
38 if ((start < 0) || (start > n) || (end < start) || (end > n))
101 final String toString(int start, int end) { argument
102 return str.toString().substring(start + offset, end + offset);
105 public final CharBuffer subSequence(int start, int end) { argument
111 pos + checkIndex(end, pos),
H A DByteBufferAsCharBuffer.java160 public String toString(int start, int end) { argument
161 if ((end > limit()) || (start > end))
164 int len = end - start;
169 db.limit(end);
179 public CharBuffer subSequence(int start, int end) { argument
186 if ((start < 0) || (end > len) || (start > end))
191 pos + end,
H A DHeapCharBuffer.java205 String toString(int start, int end) { // package-private argument
207 return new String(hb, start + offset, end - start);
213 public CharBuffer subSequence(int start, int end) { argument
215 || (end > length())
216 || (start > end))
222 pos + end,
/libcore/ojluni/src/main/java/sun/util/locale/
H A DStringTokenIterator.java40 private int end; field in class:StringTokenIterator
67 return end;
76 start = end + 1;
77 end = nextDelimiter(start);
78 token = text.substring(start, end);
80 start = end;
88 return (end < text.length());
96 end = nextDelimiter(start);
97 token = text.substring(start, end);
/libcore/ojluni/src/test/java/util/stream/test/org/openjdk/tests/java/util/stream/
H A DRangeTest.java63 for (int end : Arrays.asList(1, 10, -1, -10)) {
64 setContext("end", end);
65 int size = (start < end) ? end - start : 0;
67 for (int i = start, p = 0; i < end; i++, p++) {
71 int[] inc = IntStream.range(start, end).toArray();
75 withData(intRangeData(start, end)).stream(s -> s).
83 for (int end : Arrays.asList(1, 10, -1, -10)) {
84 setContext("end", en
123 intRangeData(int start, int end) argument
127 intRangeClosedData(int start, int end) argument
206 longRangeData(long start, long end) argument
210 longRangeClosedData(long start, long end) argument
[all...]
/libcore/support/src/test/java/tests/support/
H A DSupport_Format.java37 String text, Format.Field field, int begin, int end) {
55 assertEquals("Test " + count + ": incorrect end index for field"
56 + field, end, pos.getEndIndex());
81 * which stores start and end indexes and an attribute this range
88 int end = iterator.getRunLimit();
94 result.add(new FieldContainer(start, end, attribute, value));
95 // System.out.println(start + " " + end + ": " + attribute + ",
98 // end +"," + attribute+ "," + value+ "));");
100 iterator.setIndex(end);
106 int start, end; field in class:Support_Format.FieldContainer
36 t_FormatWithField(int count, Format format, Object object, String text, Format.Field field, int begin, int end) argument
113 FieldContainer(int start, int end, AttributedCharacterIterator.Attribute attribute) argument
119 FieldContainer(int start, int end, Attribute attribute, int value) argument
124 FieldContainer(int start, int end, Attribute attribute, Object value) argument
[all...]
/libcore/luni/src/main/java/libcore/net/
H A DUriCodec.java56 * Throw URISyntaxException if any of the characters in the range [start, end) are not valid
62 * On success, the substring [start, end) is returned.
65 public final String validate(String uri, int start, int end, String name) argument
68 while (i < end) {
79 c = getNextCharacter(uri, i++, end, name);
85 return uri.substring(start, end);
111 private static char getNextCharacter(String uri, int index, int end, String name) argument
113 if (index >= end) {
116 uri, "Unexpected end of string" + nameString, index);
313 // Unexpected end o
[all...]
/libcore/ojluni/src/lambda/java/java/lang/invoke/
H A DMethodType.java71 public MethodType dropParameterTypes(int start, int end) { return null; } argument

Completed in 892 milliseconds

123