mirror of https://github.com/apache/poi.git
support specific method to set zip entry max size
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1898228 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1d0b478c16
commit
ddd3bc2f9f
|
@ -39,7 +39,16 @@ import org.apache.poi.util.TempFile;
|
|||
|
||||
// how large a single entry in a zip-file should become at max
|
||||
// can be overwritten via IOUtils.setByteArrayMaxOverride()
|
||||
private static final int MAX_ENTRY_SIZE = 100_000_000;
|
||||
private static final int DEFAULT_MAX_ENTRY_SIZE = 100_000_000;
|
||||
private static int MAX_ENTRY_SIZE = DEFAULT_MAX_ENTRY_SIZE;
|
||||
|
||||
public static void setMaxEntrySize(int maxEntrySize) {
|
||||
MAX_ENTRY_SIZE = maxEntrySize;
|
||||
}
|
||||
|
||||
public static int getMaxEntrySize() {
|
||||
return MAX_ENTRY_SIZE;
|
||||
}
|
||||
|
||||
private byte[] data;
|
||||
private File tempFile;
|
||||
|
|
Loading…
Reference in New Issue