aQute.bnd.properties
Class Document

java.lang.Object
  extended by aQute.bnd.properties.Document
All Implemented Interfaces:
IDocument

public class Document
extends Object
implements IDocument


Nested Class Summary
protected static class Document.DelimiterInfo
           
 
Field Summary
static String[] DELIMITERS
           
 
Constructor Summary
Document(String text)
           
 
Method Summary
 String get()
           
 String get(int offset, int length)
           
 char getChar(int pos)
           
 int getLength()
           
 String getLineDelimiter(int line)
           
 IRegion getLineInformation(int line)
           
 int getNumberOfLines()
           
 void replace(int offset, int length, String text)
           
 void setText(String text)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DELIMITERS

public static final String[] DELIMITERS
Constructor Detail

Document

public Document(String text)
Method Detail

getNumberOfLines

public int getNumberOfLines()
Specified by:
getNumberOfLines in interface IDocument

getLineInformation

public IRegion getLineInformation(int line)
                           throws BadLocationException
Specified by:
getLineInformation in interface IDocument
Throws:
BadLocationException

get

public String get(int offset,
                  int length)
           throws BadLocationException
Specified by:
get in interface IDocument
Throws:
BadLocationException

getLineDelimiter

public String getLineDelimiter(int line)
                        throws BadLocationException
Specified by:
getLineDelimiter in interface IDocument
Throws:
BadLocationException

getLength

public int getLength()
Specified by:
getLength in interface IDocument

replace

public void replace(int offset,
                    int length,
                    String text)
             throws BadLocationException
Specified by:
replace in interface IDocument
Throws:
BadLocationException

getChar

public char getChar(int pos)
Specified by:
getChar in interface IDocument

setText

public void setText(String text)

get

public String get()
Specified by:
get in interface IDocument


Copyright © 2014 aQute SARL. All rights reserved.