package aQute.bnd.properties;

/**
 * Interface for storing and managing text. <p> Provides access to the stored
 * text and allows to manipulate it. </p> <p> Clients may implement this
 * interface or use {@link org.eclipse.jface.text.GapTextStore} or {@link
 * org.eclipse.jface.text.CopyOnWriteTextStore}. </p>
 */
public interface ITextStore {

	/**
	 * Returns the character at the specified offset. @param offset the offset
	 * in this text store @return the character at this offset
	 */
	char get(int offset);

	/**
	 * Returns the text of the specified character range. @param offset the
	 * offset of the range @param length the length of the range @return the
	 * text of the range
	 */
	String get(int offset, int length);

	/**
	 * Returns number of characters stored in this text store. @return the
	 * number of characters stored in this text store
	 */
	int getLength();

	/**
	 * Replaces the specified character range with the given text.
	 * <code>replace(getLength(), 0, "some text")</code> is a valid call and
	 * appends text to the end of the text store. @param offset the offset of
	 * the range to be replaced @param length the number of characters to be
	 * replaced @param text the substitution text
	 */
	void replace(int offset, int length, String text);

	/**
	 * Replace the content of the text store with the given text. Convenience
	 * method for <code>replace(0, getLength(), text</code>. @param text the new
	 * content of the text store
	 */
	void set(String text);
}
@@ -71,20 +71,26 @@
 ng text.
+%0A *
  %3Cp%3E
+%0A *
  Provide
@@ -111,19 +111,16 @@
 e stored
-%0A *
  text an
@@ -149,17 +149,26 @@
  it.
+%0A *
  %3C/p%3E
+%0A *
  %3Cp%3E
+%0A *
  Cli
@@ -190,19 +190,16 @@
 ent this
-%0A *
  interfa
@@ -212,88 +212,327 @@
 use 
-%7B@link org.eclipse.
+%3Ca href=%0A * %22http://help.eclipse.org/luna/rtopic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/
 jface
-.
+/
 text
-.GapTextStore%7D or %7B@link%0A * org.eclipse.
+/GapTextStore.html%22%3E%0A * %7B@code GapTextStore%7D%3C/a%3E or %3Ca href=%0A * %22http://help.eclipse.org/luna/rtopic/org.eclipse.platform.doc.isv/reference/api/org/eclipse/
 jface
-.
+/
 text
-.
+/CopyOnWriteTextStore.html%22%3E%0A * %7B@code 
 Copy
@@ -548,17 +548,24 @@
 xtStore%7D
-.
+%3C/a%3E.%0A *
  %3C/p%3E%0A *

Use external link for eclipse API javadoc.