Mercurial > projects > dwt-addons
comparison dwtx/jface/text/rules/BufferedRuleBasedScanner.d @ 146:75302ef3f92f
final
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 22:34:04 +0200 |
parents | 7d818bd32d63 |
children | eb21d3dfc767 |
comparison
equal
deleted
inserted
replaced
145:02cd5f1224d3 | 146:75302ef3f92f |
---|---|
52 * the contract of <code>RuleBasedScanner</code>. | 52 * the contract of <code>RuleBasedScanner</code>. |
53 */ | 53 */ |
54 public class BufferedRuleBasedScanner : RuleBasedScanner { | 54 public class BufferedRuleBasedScanner : RuleBasedScanner { |
55 | 55 |
56 /** The default buffer size. Value = 500 */ | 56 /** The default buffer size. Value = 500 */ |
57 private final static int DEFAULT_BUFFER_SIZE= 500; | 57 private const static int DEFAULT_BUFFER_SIZE= 500; |
58 /** The actual size of the buffer. Initially set to <code>DEFAULT_BUFFER_SIZE</code> */ | 58 /** The actual size of the buffer. Initially set to <code>DEFAULT_BUFFER_SIZE</code> */ |
59 private int fBufferSize= DEFAULT_BUFFER_SIZE; | 59 private int fBufferSize= DEFAULT_BUFFER_SIZE; |
60 /** The buffer */ | 60 /** The buffer */ |
61 private char[] fBuffer= new char[DEFAULT_BUFFER_SIZE]; | 61 private char[] fBuffer= new char[DEFAULT_BUFFER_SIZE]; |
62 /** The offset of the document at which the buffer starts */ | 62 /** The offset of the document at which the buffer starts */ |