34 lines
878 B
Java
34 lines
878 B
Java
package c.f.d.g;
|
|
|
|
import com.airbnb.lottie.parser.AnimatableValueParser;
|
|
import java.io.IOException;
|
|
import java.io.InputStream;
|
|
import java.io.OutputStream;
|
|
/* compiled from: PooledByteStreams */
|
|
public class j {
|
|
public final int a = 16384;
|
|
public final a b;
|
|
|
|
public j(a aVar) {
|
|
AnimatableValueParser.j(true);
|
|
this.b = aVar;
|
|
}
|
|
|
|
public long a(InputStream inputStream, OutputStream outputStream) throws IOException {
|
|
byte[] bArr = this.b.get(this.a);
|
|
long j = 0;
|
|
while (true) {
|
|
try {
|
|
int read = inputStream.read(bArr, 0, this.a);
|
|
if (read == -1) {
|
|
return j;
|
|
}
|
|
outputStream.write(bArr, 0, read);
|
|
j += (long) read;
|
|
} finally {
|
|
this.b.release(bArr);
|
|
}
|
|
}
|
|
}
|
|
}
|