Lines Matching defs:length
61 if (start < 0 || start > this.length())
67 return this.current < FlatCharSequenceRope.this.length();
83 public int length() {
84 return this.sequence.length();
100 if (start < 0 || start > this.length())
103 int current = FlatCharSequenceRope.this.length() - start;
123 if (start == 0 && end == this.length())
137 public String toString(final int offset, final int length) {
138 return this.sequence.subSequence(offset, offset + length).toString();
143 this.write(out, 0, this.length());
147 public void write(final Writer out, final int offset, final int length) throws IOException {
148 if (offset < 0 || offset + length > this.length())
149 throw new IndexOutOfBoundsException("Rope index out of bounds:" + (offset < 0 ? offset: offset + length));
152 out.write(((String) this.sequence).substring(offset, offset+length));
155 for (int j=offset; j<offset + length; ++j)