| java.lang.Object org.netbeans.editor.DocCacheSupport org.netbeans.editor.MemCacheSupport
MemCacheSupport | class MemCacheSupport extends DocCacheSupport (Code) | | Manages in-memory character cache to store contents of the document.
author: Miloslav Metelka version: 1.00 |
Method Summary | |
public void | ensureCapacity(int capacity) | public char[] | getDirectModeBuffer() | public void | insert(int pos, char cache, int offset, int len) | public void | insertString(int pos, String text, int offset, int len) | public void | read(int pos, char cache, int offset, int len) | public void | remove(int pos, int len) | public boolean | supportsDirectMode() | public void | write(int pos, char cache, int offset, int len) |
buffer | char buffer(Code) | | Memory cache array
|
MemCacheSupport | public MemCacheSupport()(Code) | | Construct new memory cacheSupport with zero size
|
MemCacheSupport | public MemCacheSupport(int ensureCapacity)(Code) | | Construct new memory cacheSupport. Initialize the memory array.
Parameters: ensureCapacity - how much space preallocate |
ensureCapacity | public void ensureCapacity(int capacity)(Code) | | |
getDirectModeBuffer | public char[] getDirectModeBuffer()(Code) | | |
insert | public void insert(int pos, char cache, int offset, int len)(Code) | | |
insertString | public void insertString(int pos, String text, int offset, int len)(Code) | | |
read | public void read(int pos, char cache, int offset, int len)(Code) | | |
remove | public void remove(int pos, int len)(Code) | | |
supportsDirectMode | public boolean supportsDirectMode()(Code) | | |
write | public void write(int pos, char cache, int offset, int len)(Code) | | |
Methods inherited from org.netbeans.editor.DocCacheSupport | public void destroy()(Code)(Java Doc) public void ensureCapacity(int capacity)(Code)(Java Doc) public char[] getDirectModeBuffer()(Code)(Java Doc) final public int getDocLength()(Code)(Java Doc) abstract public void insert(int pos, char buffer, int offset, int len) throws BadLocationException(Code)(Java Doc) abstract public void insertString(int pos, String text, int offset, int len) throws BadLocationException(Code)(Java Doc) abstract public void read(int pos, char buffer, int offset, int len) throws BadLocationException(Code)(Java Doc) abstract public void remove(int pos, int len) throws BadLocationException(Code)(Java Doc) public void save(Writer writer) throws IOException(Code)(Java Doc) public boolean supportsDirectMode()(Code)(Java Doc) abstract public void write(int pos, char buffer, int offset, int len) throws BadLocationException(Code)(Java Doc)
|
|
|