Mercurial > hg4j
changeset 27:b0a15cefdfd6
Cons args instead of fixed consts
author | Artem Tikhomirov <tikhomirov.artem@gmail.com> |
---|---|
date | Sun, 09 Jan 2011 16:02:26 +0100 |
parents | 71a9ba42cee8 |
children | b2251b7a9823 |
files | src/com/tmate/hgkit/fs/DataAccessProvider.java |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/com/tmate/hgkit/fs/DataAccessProvider.java Sun Jan 09 15:59:54 2011 +0100 +++ b/src/com/tmate/hgkit/fs/DataAccessProvider.java Sun Jan 09 16:02:26 2011 +0100 @@ -20,8 +20,12 @@ private final int bufferSize; public DataAccessProvider() { - mapioMagicBoundary = 100 * 1024; - bufferSize = 8 * 1024; + this(100 * 1024, 8 * 1024); + } + + public DataAccessProvider(int mapioBoundary, int regularBufferSize) { + mapioMagicBoundary = mapioBoundary; + bufferSize = regularBufferSize; } public DataAccess create(File f) {