Stuart McCulloch | 669423b | 2012-06-26 16:34:24 +0000 | [diff] [blame^] | 1 | package aQute.lib.properties; |
| 2 | |
| 3 | public interface IDocument { |
| 4 | |
| 5 | int getNumberOfLines(); |
| 6 | |
| 7 | IRegion getLineInformation(int lineNum) throws BadLocationException; |
| 8 | |
| 9 | String get(); |
| 10 | |
| 11 | String get(int offset, int length) throws BadLocationException; |
| 12 | |
| 13 | String getLineDelimiter(int line) throws BadLocationException; |
| 14 | |
| 15 | int getLength(); |
| 16 | |
| 17 | void replace(int offset, int length, String data) throws BadLocationException; |
| 18 | |
| 19 | char getChar(int offset) throws BadLocationException; |
| 20 | |
| 21 | } |