@@ -141,7 +141,7 @@ public class Tailer implements Runnable {
141141 /**
142142 * The character set that will be used to read the file.
143143 */
144- private final Charset cset ;
144+ private final Charset charset ;
145145
146146 /**
147147 * The amount of time to wait for the file to be updated.
@@ -241,14 +241,14 @@ public Tailer(final File file, final TailerListener listener, final long delayMi
241241 /**
242242 * Creates a Tailer for the given file, with a specified buffer size.
243243 * @param file the file to follow.
244- * @param cset the Charset to be used for reading the file
244+ * @param charset the Charset to be used for reading the file
245245 * @param listener the TailerListener to use.
246246 * @param delayMillis the delay between checks of the file for new content in milliseconds.
247247 * @param end Set to true to tail from the end of the file, false to tail from the beginning of the file.
248248 * @param reOpen if true, close and reopen the file between reading chunks
249249 * @param bufSize Buffer size
250250 */
251- public Tailer (final File file , final Charset cset , final TailerListener listener , final long delayMillis ,
251+ public Tailer (final File file , final Charset charset , final TailerListener listener , final long delayMillis ,
252252 final boolean end , final boolean reOpen
253253 , final int bufSize ) {
254254 this .file = file ;
@@ -261,7 +261,7 @@ public Tailer(final File file, final Charset cset, final TailerListener listener
261261 this .listener = listener ;
262262 listener .init (this );
263263 this .reOpen = reOpen ;
264- this .cset = cset ;
264+ this .charset = charset ;
265265 }
266266
267267 /**
@@ -521,7 +521,7 @@ private long readLines(final RandomAccessFile reader) throws IOException {
521521 switch ( ch ) {
522522 case '\n' :
523523 seenCR = false ; // swallow CR before LF
524- listener .handle (new String (lineBuf .toByteArray (), cset ));
524+ listener .handle (new String (lineBuf .toByteArray (), charset ));
525525 lineBuf .reset ();
526526 rePos = pos + i + 1 ;
527527 break ;
@@ -534,7 +534,7 @@ private long readLines(final RandomAccessFile reader) throws IOException {
534534 default :
535535 if (seenCR ) {
536536 seenCR = false ; // swallow final CR
537- listener .handle (new String (lineBuf .toByteArray (), cset ));
537+ listener .handle (new String (lineBuf .toByteArray (), charset ));
538538 lineBuf .reset ();
539539 rePos = pos + i + 1 ;
540540 }
0 commit comments