jdk/src/share/classes/javax/swing/text/Document.java
changeset 21982 fd6e5fe509df
parent 21278 ef8a3a2a72f2
child 22260 c9185e010e03
equal deleted inserted replaced
21981:48b31d370bc9 21982:fd6e5fe509df
   352      * If the partialReturn property is true, only the amount of text that
   352      * If the partialReturn property is true, only the amount of text that
   353      * can be returned without creating a copy is returned.  Using partial
   353      * can be returned without creating a copy is returned.  Using partial
   354      * returns will give better performance for situations where large
   354      * returns will give better performance for situations where large
   355      * parts of the document are being scanned.  The following is an example
   355      * parts of the document are being scanned.  The following is an example
   356      * of using the partial return to access the entire document:
   356      * of using the partial return to access the entire document:
   357      * <p>
   357      *
   358      * <pre><code>
   358      * <pre><code>
   359      *
   359      *
   360      * &nbsp; int nleft = doc.getDocumentLength();
   360      * &nbsp; int nleft = doc.getDocumentLength();
   361      * &nbsp; Segment text = new Segment();
   361      * &nbsp; Segment text = new Segment();
   362      * &nbsp; int offs = 0;
   362      * &nbsp; int offs = 0;