wavefrontHQ / wavefront-sdk-java

Wavefront Core Java SDK
Apache License 2.0
6 stars 23 forks source link

Use Guava ByteStreams.copy instead of checking InputStream.available #347

Open skradel opened 3 months ago

skradel commented 3 months ago

InputStream.availble for checking stream exhaustion is a generally incorrect usage; instead defer to Guava to copy the data through a buffer.