private void enforceLimits() throws IOException { if (maxSize > 0 && totalLength > maxSize) { throw new CacheSizeExceededException(); } if (inmem && totalLength > threshold && currentStream instanceof ByteArrayOutputStream) { createFileOutputStream(); } }
private void enforceLimits() throws IOException { if (maxSize > 0 && totalLength > maxSize) { throw new CacheSizeExceededException(); } if (inmem && totalLength > threshold && currentStream instanceof ByteArrayOutputStream) { createFileOutputStream(); } }
private void enforceLimits() throws IOException { if (maxSize > 0 && totalLength > maxSize) { throw new CacheSizeExceededException(); } if (inmem && totalLength > threshold && currentStream instanceof LoadingCharArrayWriter) { createFileOutputStream(); } }
private void enforceLimits() throws IOException { if (maxSize > 0 && totalLength > maxSize) { throw new CacheSizeExceededException(); } if (inmem && totalLength > threshold && currentStream instanceof LoadingCharArrayWriter) { createFileOutputStream(); } }
private void enforceLimits() throws IOException { if (maxSize > 0 && totalLength > maxSize) { throw new CacheSizeExceededException(); } if (inmem && totalLength > threshold && currentStream instanceof ByteArrayOutputStream) { createFileOutputStream(); } }
private void enforceLimits() throws IOException { if (maxSize > 0 && totalLength > maxSize) { throw new CacheSizeExceededException(); } if (inmem && totalLength > threshold && currentStream instanceof LoadingCharArrayWriter) { createFileOutputStream(); } }
private void enforceLimits() throws IOException { if (maxSize > 0 && totalLength > maxSize) { throw new CacheSizeExceededException(); } if (inmem && totalLength > threshold && currentStream instanceof ByteArrayOutputStream) { createFileOutputStream(); } }
private void enforceLimits() throws IOException { if (maxSize > 0 && totalLength > maxSize) { throw new CacheSizeExceededException(); } if (inmem && totalLength > threshold && currentStream instanceof LoadingCharArrayWriter) { createFileOutputStream(); } }