diff --git a/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/ContentLengthObserver.java b/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/ContentLengthObserver.java index 37ddaa24..b7976afc 100644 --- a/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/ContentLengthObserver.java +++ b/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/ContentLengthObserver.java @@ -33,17 +33,17 @@ public ContentLengthObserver(ResourceBuilder builder) { } @Override - void data(int pByte) throws IOException { + public void data(int pByte) throws IOException { length++; } @Override - void data(byte[] pBuffer, int pOffset, int pLength) throws IOException { + public void data(byte[] pBuffer, int pOffset, int pLength) throws IOException { length += pLength; } @Override - void finished() throws IOException { + public void finished() throws IOException { if (!isFinished()) { builder.sizeBytes(this.length); } diff --git a/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/DigestObserver.java b/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/DigestObserver.java index d772f4af..e1e2ae63 100644 --- a/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/DigestObserver.java +++ b/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/DigestObserver.java @@ -65,17 +65,17 @@ public DigestObserver(ResourceBuilder builder, Checksum.OPTS algorithm) { } @Override - void data(int pByte) throws IOException { + public void data(int pByte) throws IOException { digest.update((byte) pByte); } @Override - void data(byte[] pBuffer, int pOffset, int pLength) throws IOException { + public void data(byte[] pBuffer, int pOffset, int pLength) throws IOException { digest.update(pBuffer, pOffset, pLength); } @Override - void finished() throws IOException { + public void finished() throws IOException { if (!isFinished()) { byte[] value = this.digest.digest(); builder.checksum(new ChecksumImpl(algo, value, getEncoder().encodeToString(value), encodeHexString(value))); diff --git a/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/ResourceBuilderObserver.java b/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/ResourceBuilderObserver.java index b1655676..cb027c29 100644 --- a/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/ResourceBuilderObserver.java +++ b/pass-deposit-services/deposit-core/src/main/java/org/apache/commons/io/input/ResourceBuilderObserver.java @@ -43,7 +43,7 @@ public boolean isFinished() { } @Override - void finished() throws IOException { + public void finished() throws IOException { this.finished = true; } } \ No newline at end of file