From 02332907d3c89c7a68d352bcf75b7fa473a45265 Mon Sep 17 00:00:00 2001 From: "m.ross" Date: Sun, 18 Nov 2018 10:05:22 -0500 Subject: [PATCH] Expose getters for some corresponding setters --- .../org/nustaq/serialization/coders/FSTStreamDecoder.java | 4 ++++ .../org/nustaq/serialization/coders/FSTStreamEncoder.java | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/main/java/org/nustaq/serialization/coders/FSTStreamDecoder.java b/src/main/java/org/nustaq/serialization/coders/FSTStreamDecoder.java index bde0f9dc..2b204024 100644 --- a/src/main/java/org/nustaq/serialization/coders/FSTStreamDecoder.java +++ b/src/main/java/org/nustaq/serialization/coders/FSTStreamDecoder.java @@ -452,6 +452,10 @@ public void setInputStream(InputStream in) { clnames.clear(); } + public InputStream getInputStream() { + return input; + } + @Override public void resetToCopyOf(byte[] bytes, int off, int len) { input.reset(); diff --git a/src/main/java/org/nustaq/serialization/coders/FSTStreamEncoder.java b/src/main/java/org/nustaq/serialization/coders/FSTStreamEncoder.java index 521f89bd..3848c310 100644 --- a/src/main/java/org/nustaq/serialization/coders/FSTStreamEncoder.java +++ b/src/main/java/org/nustaq/serialization/coders/FSTStreamEncoder.java @@ -526,6 +526,10 @@ public void setOutstream(OutputStream outstream) { else buffout.setOutstream(outstream); } + + public OutputStream getOutstream() { + return buffout; + } /** * writes current buffer to underlying output and resets buffer.