|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GapStart
A given object can publish this interface if it allows an efficient access to its gap-based data storage and wants to give its clients a hint about how to access the data efficiently.
For example Document
instance
having gap-based document content can allow to get an instance
of GapStart as a property:
GapStart gs = (GapStart)doc.getProperty(GapStart.class); int gapStart = gs.getGapStart();Once the start of the gap is known the client can optimize access to the document's data. For example if the client does not care about the chunks in which it gets the document's data it can access the characters so that no character copying is done:Segment text = new Segment(); doc.getText(0, gapStart, text); // document's data below gap ... doc.getText(gapStart, doc.getLength(), text); // document's data over gap ...
Method Summary | |
---|---|
int |
getGapStart()
Get the begining of the gap in the object's gap-based data. |
Method Detail |
---|
int getGapStart()
|
org.netbeans.modules.editor.lib/1 1.14.0 3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |