Interface IBuffer

All Known Implementing Classes:
Buffer, NullBuffer

public interface IBuffer
A buffer contains the text contents of a resource. It is not language-specific. The contents may be in the process of being edited, differing from the actual contents of the underlying resource. A buffer has an owner, which is an IOpenable. If a buffer does not have an underlying resource, saving the buffer has no effect. Buffers can be read-only.

Note that java model operations that manipulate an IBuffer (for example, IType.createMethod(...)) ensures that the same line delimiter (either "\n" or "\r" or "\r\n") is used across the whole buffer. Thus these operations may change the line delimiter(s) included in the string to be append, or replaced. However implementers of this interface should be aware that other clients of IBuffer might not do such transformations beforehand.

This interface may be implemented by clients.