public class DocumentUtilities extends Object
|Modifier and Type||Method and Description|
Copy portion of the document into target character array.
public static int getGapStart(Document doc)
public static void copyText(Document srcDoc, int srcStartOffset, int srcEndOffset, char dst, int dstOffset) throws BadLocationException
srcDoc- document from which to copy.
srcStartOffset- offset of the first character to copy.
srcEndOffset- offset that follows the last character to copy.
dst- destination character array into which the data will be copied.
dstOffset- offset in the destination array at which the putting of the characters starts.
Built on January 23 2023. | Copyright © 2017-2023 Apache Software Foundation. All Rights Reserved.