Skip to content

Commit

Permalink
Java 9: InputStream.transferTo(OutputStream) instead of JVM-based byt…
Browse files Browse the repository at this point in the history
…e transferTo

Provides potential higher performance.

Signed-off-by: Markus KARG <markus@headcrashing.eu>
  • Loading branch information
mkarg committed Dec 24, 2020
1 parent 7e2e788 commit e6165e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/org/codehaus/plexus/util/IOUtil.java
Expand Up @@ -156,7 +156,7 @@ private IOUtil()
public static void copy( final InputStream input, final OutputStream output )
throws IOException
{
copy( input, output, DEFAULT_BUFFER_SIZE );
input.transferTo( output );
}

/**
Expand Down

0 comments on commit e6165e5

Please sign in to comment.