pdf- and zipParser should not use forced Memory-Limits

pull/1/head
sixcooler 13 years ago
parent 562183932b
commit 6c50d016ed

@ -71,7 +71,7 @@ public class pdfParser extends AbstractParser implements Parser {
public Document[] parse(final DigestURI location, final String mimeType, final String charset, final InputStream source) throws Parser.Failure, InterruptedException {
// check memory for parser
if (!MemoryControl.request(200 * 1024 * 1024, true))
if (!MemoryControl.request(200 * 1024 * 1024, false))
throw new Parser.Failure("Not enough Memory available for pdf parser: " + MemoryControl.available(), location);
// create a pdf parser

@ -65,7 +65,7 @@ public class zipParser extends AbstractParser implements Parser {
final String charset, final InputStream source)
throws Parser.Failure, InterruptedException {
// check memory for parser
if (!MemoryControl.request(200 * 1024 * 1024, true))
if (!MemoryControl.request(200 * 1024 * 1024, false))
throw new Parser.Failure("Not enough Memory available for zip parser: " + MemoryControl.available(), url);
Document[] docs = null;

Loading…
Cancel
Save