1/*
2 *  FlatRope.java
3 *  Copyright (C) 2007 Amin Ahmad.
4 *
5 *  This file is part of Java Ropes.
6 *
7 *  Java Ropes is free software: you can redistribute it and/or modify
8 *  it under the terms of the GNU General Public License as published by
9 *  the Free Software Foundation, either version 3 of the License, or
10 *  (at your option) any later version.
11 *
12 *  Java Ropes is distributed in the hope that it will be useful,
13 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 *  GNU General Public License for more details.
16 *
17 *  You should have received a copy of the GNU General Public License
18 *  along with Java Ropes.  If not, see <http://www.gnu.org/licenses/>.
19 *
20 *  Amin Ahmad can be contacted at amin.ahmad@gmail.com or on the web at
21 *  www.ahmadsoft.org.
22 */
23package org.ahmadsoft.ropes.impl;
24
25/**
26 * A rope that is directly backed by a data source.
27 * @author aahmad
28 */
29interface FlatRope extends org.ahmadsoft.ropes.Rope {
30	/**
31	 * Returns a <code>String</code> representation of a range
32	 * in this rope.
33	 * @param offset the offset.
34	 * @param length the length.
35	 * @return a <code>String</code> representation of a range
36	 * in this rope.
37	 */
38	public String toString(int offset, int length);
39}
40