Package aQute.bnd.properties
Class Document
- java.lang.Object
-
- aQute.bnd.properties.Document
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static classDocument.DelimiterInfo
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]DELIMITERSprivate LineTrackerlineTrackerprivate ITextStoretextStore
-
Constructor Summary
Constructors Constructor Description Document(java.lang.String text)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Stringget()java.lang.Stringget(int offset, int length)chargetChar(int pos)intgetLength()java.lang.StringgetLineDelimiter(int line)IRegiongetLineInformation(int line)intgetNumberOfLines()voidreplace(int offset, int length, java.lang.String text)voidsetText(java.lang.String text)
-
-
-
Field Detail
-
DELIMITERS
public static final java.lang.String[] DELIMITERS
-
lineTracker
private LineTracker lineTracker
-
textStore
private ITextStore textStore
-
-
Method Detail
-
getNumberOfLines
public int getNumberOfLines()
- Specified by:
getNumberOfLinesin interfaceIDocument
-
getLineInformation
public IRegion getLineInformation(int line) throws BadLocationException
- Specified by:
getLineInformationin interfaceIDocument- Throws:
BadLocationException
-
get
public java.lang.String get(int offset, int length) throws BadLocationException- Specified by:
getin interfaceIDocument- Throws:
BadLocationException
-
getLineDelimiter
public java.lang.String getLineDelimiter(int line) throws BadLocationException- Specified by:
getLineDelimiterin interfaceIDocument- Throws:
BadLocationException
-
replace
public void replace(int offset, int length, java.lang.String text) throws BadLocationException- Specified by:
replacein interfaceIDocument- Throws:
BadLocationException
-
setText
public void setText(java.lang.String text)
-
-