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 class
Document.DelimiterInfo
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
DELIMITERS
-
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.String
get()
java.lang.String
get(int offset, int length)
char
getChar(int pos)
int
getLength()
java.lang.String
getLineDelimiter(int line)
IRegion
getLineInformation(int line)
int
getNumberOfLines()
void
replace(int offset, int length, java.lang.String text)
void
setText(java.lang.String text)
-
-
-
Method Detail
-
getNumberOfLines
public int getNumberOfLines()
- Specified by:
getNumberOfLines
in interfaceIDocument
-
getLineInformation
public IRegion getLineInformation(int line) throws BadLocationException
- Specified by:
getLineInformation
in interfaceIDocument
- Throws:
BadLocationException
-
get
public java.lang.String get(int offset, int length) throws BadLocationException
- Specified by:
get
in interfaceIDocument
- Throws:
BadLocationException
-
getLineDelimiter
public java.lang.String getLineDelimiter(int line) throws BadLocationException
- Specified by:
getLineDelimiter
in interfaceIDocument
- Throws:
BadLocationException
-
replace
public void replace(int offset, int length, java.lang.String text) throws BadLocationException
- Specified by:
replace
in interfaceIDocument
- Throws:
BadLocationException
-
setText
public void setText(java.lang.String text)
-
-