private static final int DEFAULT_TIMESTAMP_RESPONSE_SIZE = 10_000_000;
private static int MAX_TIMESTAMP_RESPONSE_SIZE = DEFAULT_TIMESTAMP_RESPONSE_SIZE;
+ /**
+ * @param maxTimestampResponseSize the max timestamp response size allowed
+ */
public static void setMaxTimestampResponseSize(int maxTimestampResponseSize) {
MAX_TIMESTAMP_RESPONSE_SIZE = maxTimestampResponseSize;
}
+ /**
+ * @return the max timestamp response size allowed
+ */
public static int getMaxTimestampResponseSize() {
return MAX_TIMESTAMP_RESPONSE_SIZE;
}
*/
@Override
public XSLFPictureData addPicture(InputStream is, PictureType format) throws IOException {
- return addPicture(IOUtils.toByteArray(is, MAX_IMAGE_SIZE), format);
+ return addPicture(IOUtils.toByteArray(is, getMaxImageSize()), format);
}