Refactor magic int into a constant.
*/
public class ReversedLinesFileReader implements Closeable {
+ private static final int DEFAULT_BLOCK_SIZE = 4096;
+
private final int blockSize;
private final Charset encoding;
*/
@Deprecated
public ReversedLinesFileReader(final File file) throws IOException {
- this(file, 4096, Charset.defaultCharset());
+ this(file, DEFAULT_BLOCK_SIZE, Charset.defaultCharset());
}
/**
@@ -76,7 +78,7 @@ public ReversedLinesFileReader(final File file) throws IOException {
* @since 2.5
*/
public ReversedLinesFileReader(final File file, final Charset charset) throws IOException {
- this(file, 4096, charset);
+ this(file, DEFAULT_BLOCK_SIZE, charset);
}
/**
