Home
last modified time | relevance | path

Searched refs:memoryLimitInKb (Results 1 – 7 of 7) sorted by relevance

/external/apache-commons-compress/src/main/java/org/apache/commons/compress/
DMemoryLimitException.java37 private final int memoryLimitInKb; field in MemoryLimitException
39 public MemoryLimitException(long memoryNeededInKb, int memoryLimitInKb) { in MemoryLimitException() argument
40 super(buildMessage(memoryNeededInKb, memoryLimitInKb)); in MemoryLimitException()
42 this.memoryLimitInKb = memoryLimitInKb; in MemoryLimitException()
45 public MemoryLimitException(long memoryNeededInKb, int memoryLimitInKb, Exception e) { in MemoryLimitException() argument
46 super(buildMessage(memoryNeededInKb, memoryLimitInKb), e); in MemoryLimitException()
48 this.memoryLimitInKb = memoryLimitInKb; in MemoryLimitException()
56 return memoryLimitInKb; in getMemoryLimitInKb()
59 private static String buildMessage(long memoryNeededInKb, int memoryLimitInKb) { in buildMessage() argument
61 + memoryLimitInKb + " kb. " + in buildMessage()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lzw/
DLZWInputStream.java132 protected void initializeTables(final int maxCodeSize, final int memoryLimitInKb) in initializeTables() argument
135 if (memoryLimitInKb > -1) { in initializeTables()
141 if (memoryUsageInKb > memoryLimitInKb) { in initializeTables()
142 throw new MemoryLimitException(memoryUsageInKb, memoryLimitInKb); in initializeTables()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/
DCompressorStreamFactory.java407 private final int memoryLimitInKb;
413 this.memoryLimitInKb = -1;
432 public CompressorStreamFactory(final boolean decompressUntilEOF, final int memoryLimitInKb) {
437 this.memoryLimitInKb = memoryLimitInKb;
599 … return new XZCompressorInputStream(in, actualDecompressConcatenated, memoryLimitInKb);
613 return new LZMACompressorInputStream(in, memoryLimitInKb);
629 return new ZCompressorInputStream(in, memoryLimitInKb);
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/xz/
DXZCompressorInputStream.java129 boolean decompressConcatenated, final int memoryLimitInKb) in XZCompressorInputStream() argument
133 in = new XZInputStream(countingStream, memoryLimitInKb); in XZCompressorInputStream()
135 in = new SingleXZInputStream(countingStream, memoryLimitInKb); in XZCompressorInputStream()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/lzma/
DLZMACompressorInputStream.java76 public LZMACompressorInputStream(final InputStream inputStream, int memoryLimitInKb) in LZMACompressorInputStream() argument
79 … in = new LZMAInputStream(countingStream = new CountingInputStream(inputStream), memoryLimitInKb); in LZMACompressorInputStream()
/external/apache-commons-compress/src/main/java/org/apache/commons/compress/compressors/z/
DZCompressorInputStream.java41 public ZCompressorInputStream(final InputStream inputStream, final int memoryLimitInKb) in ZCompressorInputStream() argument
55 initializeTables(maxCodeSize, memoryLimitInKb); in ZCompressorInputStream()
/external/apache-commons-compress/src/test/java/org/apache/commons/compress/compressors/
DDetectCompressorTestCase.java210 …private InputStream getStreamFor(final String fileName, final int memoryLimitInKb) throws Exceptio… in getStreamFor() argument
212 memoryLimitInKb); in getStreamFor()