You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2022/12/11 16:50:48 UTC
[commons-crypto] 02/08: Format
This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-crypto.git
commit 55b11c6574d607df6f5e811e34a14fd40ab232a6
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sun Dec 11 11:15:17 2022 -0500
Format
---
.../org/apache/commons/crypto/stream/input/StreamInput.java | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/src/main/java/org/apache/commons/crypto/stream/input/StreamInput.java b/src/main/java/org/apache/commons/crypto/stream/input/StreamInput.java
index 94d04ec..b617c96 100644
--- a/src/main/java/org/apache/commons/crypto/stream/input/StreamInput.java
+++ b/src/main/java/org/apache/commons/crypto/stream/input/StreamInput.java
@@ -28,6 +28,7 @@ import java.nio.ByteBuffer;
* {@code Input} object acceptable by {@code CryptoInputStream}.
*/
public class StreamInput implements Input {
+
private final byte[] buf;
private final int bufferSize;
final InputStream in;
@@ -127,10 +128,8 @@ public class StreamInput implements Input {
* @throws IOException if an I/O error occurs.
*/
@Override
- public int read(final long position, final byte[] buffer, final int offset, final int length)
- throws IOException {
- throw new UnsupportedOperationException(
- "Positioned read is not supported by this implementation");
+ public int read(final long position, final byte[] buffer, final int offset, final int length) throws IOException {
+ throw new UnsupportedOperationException("Positioned read is not supported by this implementation");
}
/**
@@ -144,8 +143,7 @@ public class StreamInput implements Input {
*/
@Override
public void seek(final long position) throws IOException {
- throw new UnsupportedOperationException(
- "Seek is not supported by this implementation");
+ throw new UnsupportedOperationException("Seek is not supported by this implementation");
}
/**