Skip to content

Commit

Permalink
Merge pull request #1120 from adobe/1115-speed-up-chunkeddecodinginpu…
Browse files Browse the repository at this point in the history
…tstream

Speed up AwsChunkedDecodingInputStream
  • Loading branch information
afranken authored Jun 7, 2023
2 parents 67c2ead + bccda88 commit 3b8ce24
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright 2017-2022 Adobe.
* Copyright 2017-2023 Adobe.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -16,6 +16,7 @@

package com.adobe.testing.s3mock.util;

import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.ByteBuffer;
Expand Down Expand Up @@ -65,7 +66,7 @@ public class AwsChunkedDecodingInputStream extends InputStream {
* @param source The {@link InputStream} to wrap.
*/
public AwsChunkedDecodingInputStream(final InputStream source) {
this.source = source;
this.source = new BufferedInputStream(source);
}

@Override
Expand Down

0 comments on commit 3b8ce24

Please sign in to comment.