|
40 | 40 | import java.security.MessageDigest; |
41 | 41 | import java.security.NoSuchAlgorithmException; |
42 | 42 |
|
43 | | -import org.apache.commons.io.input.BoundedInputStream; |
| 43 | +// import org.apache.commons.io.input.BoundedInputStream; |
44 | 44 | import org.slf4j.Logger; |
45 | 45 | import org.slf4j.LoggerFactory; |
46 | 46 |
|
@@ -167,8 +167,9 @@ public boolean initialize(InputStream effectiveTldDataStream) { |
167 | 167 | boolean inPrivateDomainSection = false; |
168 | 168 | try { |
169 | 169 | int linesRead = 0, rulesRead = 0; |
170 | | - BoundedInputStream isCounting = BoundedInputStream.builder().setInputStream(effectiveTldDataStream).get(); |
171 | | - InputStream is = isCounting; |
| 170 | + // BoundedInputStream isCounting = BoundedInputStream.builder().setInputStream(effectiveTldDataStream).get(); |
| 171 | + // InputStream is = isCounting; |
| 172 | + InputStream is = effectiveTldDataStream; |
172 | 173 | List<MessageDigest> digests = new ArrayList<>(); |
173 | 174 | try { |
174 | 175 | MessageDigest md5 = MessageDigest.getInstance("MD5"); |
@@ -209,8 +210,9 @@ public boolean initialize(InputStream effectiveTldDataStream) { |
209 | 210 | configured = true; |
210 | 211 |
|
211 | 212 | is.close(); |
212 | | - long bytesRead = isCounting.getCount(); |
213 | | - LOGGER.info("Successfully read public suffix list: {} bytes, {} lines, {} rules", bytesRead, linesRead, rulesRead); |
| 213 | + // long bytesRead = isCounting.getCount(); |
| 214 | + // LOGGER.info("Successfully read public suffix list: {} bytes, {} lines, {} rules", bytesRead, linesRead, rulesRead); |
| 215 | + LOGGER.info("Successfully read public suffix list: {} lines, {} rules", linesRead, rulesRead); |
214 | 216 | for (MessageDigest digest : digests) { |
215 | 217 | byte[] d = digest.digest(); |
216 | 218 | BigInteger bi = new BigInteger(1, d); |
|
0 commit comments