You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/04/20 04:59:36 UTC
[camel] branch camel-3.14.x updated: [CAMEL-17990] implement Java 8 missing InputStream delegates, leaving mark related methods off on purpose (#7466)
This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-3.14.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-3.14.x by this push:
new 8dfeed09d6f [CAMEL-17990] implement Java 8 missing InputStream delegates, leaving mark related methods off on purpose (#7466)
8dfeed09d6f is described below
commit 8dfeed09d6fbbf3dfb83b5e10574e8562d28b32a
Author: grigoni <gi...@gmail.com>
AuthorDate: Wed Apr 20 06:59:31 2022 +0200
[CAMEL-17990] implement Java 8 missing InputStream delegates, leaving mark related methods off on purpose (#7466)
Co-authored-by: giana <gianandrea.rigoniā>
---
.../camel/converter/stream/FileInputStreamCache.java | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/core/camel-support/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java b/core/camel-support/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java
index 8eb6bc9d401..cd2edeb1220 100644
--- a/core/camel-support/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java
+++ b/core/camel-support/src/main/java/org/apache/camel/converter/stream/FileInputStreamCache.java
@@ -127,6 +127,21 @@ public final class FileInputStreamCache extends InputStream implements StreamCac
return getInputStream().read();
}
+ @Override
+ public int read(byte[] b) throws IOException {
+ return getInputStream().read(b);
+ }
+
+ @Override
+ public int read(byte[] b, int off, int len) throws IOException {
+ return getInputStream().read(b, off, len);
+ }
+
+ @Override
+ public long skip(long n) throws IOException {
+ return getInputStream().skip(n);
+ }
+
protected InputStream getInputStream() throws IOException {
if (stream == null) {
stream = createInputStream(file);