in main/src/main/java/org/apache/james/jdkim/canon/LimitedOutputStream.java [47:55]
public void write(byte[] b, int off, int len) throws IOException {
if (len > limit - computedBytes) {
len = limit - computedBytes;
}
if (len > 0) {
out.write(b, off, len);
computedBytes += len;
}
}