Java org.eclipse.jdt.core IBuffer fields, constructors, methods, implement or subclass

Example usage for Java org.eclipse.jdt.core IBuffer fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.eclipse.jdt.core IBuffer.

The text is from its open source code.

Implementation

org.eclipse.jdt.core.IBuffer has the following implementations.
Click this link to see all its implementation.

Method

voidaddBufferChangedListener(IBufferChangedListener listener)
Adds the given listener for changes to this buffer.
voidappend(char[] text)
Appends the given character array to the contents of the buffer.
voidappend(String text)
Appends the given string to the contents of the buffer.
voidclose()
Closes the buffer.
chargetChar(int position)
Returns the character at the given position in this buffer.
char[]getCharacters()
Returns the contents of this buffer as a character array, or null if the buffer has not been initialized.
StringgetContents()
Returns the contents of this buffer as a String.
intgetLength()
Returns number of characters stored in this buffer.
IOpenablegetOwner()
Returns the Java openable element owning of this buffer.
StringgetText(int offset, int length)
Returns the given range of text in this buffer.
booleanhasUnsavedChanges()
Returns whether this buffer has been modified since it was opened or since it was last saved.
voidremoveBufferChangedListener(IBufferChangedListener listener)
Removes the given listener from this buffer.
voidreplace(int position, int length, char[] text)
Replaces the given range of characters in this buffer with the given text.
voidreplace(int position, int length, String text)
Replaces the given range of characters in this buffer with the given text.
voidsave(IProgressMonitor progress, boolean force)
Saves the contents of this buffer to its underlying resource.
voidsetContents(char[] contents)
Sets the contents of this buffer to the given character array.
voidsetContents(String contents)
Sets the contents of this buffer to the given String.