Lines Matching defs:length
40 private final int length;
43 public SubstringRope(final FlatRope rope, final int offset, final int length) {
44 if (length < 0 || offset < 0 || offset + length > rope.length())
45 throw new IndexOutOfBoundsException("Invalid substring offset (" + offset + ") and length (" + length + ") for underlying rope with length " + rope.length());
49 this.length = length;
77 if (start < 0 || start > this.length())
86 return this.position < SubstringRope.this.length();
104 public int length() {
105 return this.length;
115 if (start < 0 || start > this.length())
118 final Iterator<Character> u = SubstringRope.this.getRope().reverseIterator(SubstringRope.this.getRope().length() - SubstringRope.this.getOffset() - SubstringRope.this.length() + start);
119 int position = SubstringRope.this.length() - start;
141 if (start == 0 && end == this.length())
148 return this.rope.toString(this.offset, this.length);
153 this.rope.write(out, this.offset, this.length);
157 public void write(final Writer out, final int offset, final int length) throws IOException {
158 this.rope.write(out, this.offset + offset, this.length + length);