Package io.grpc.protobuf.services
Class BinaryLogProvider.IoUtils
- java.lang.Object
-
- io.grpc.protobuf.services.BinaryLogProvider.IoUtils
-
- Enclosing class:
- BinaryLogProvider
private static final class BinaryLogProvider.IoUtils extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static intMAX_BUFFER_LENGTHmaximum buffer to be read is 16 KB.
-
Constructor Summary
Constructors Modifier Constructor Description privateIoUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static longcopy(java.io.InputStream from, java.io.OutputStream to)Copies the data from input stream to output stream.static byte[]toByteArray(java.io.InputStream in)Returns the byte array.
-
-
-
Field Detail
-
MAX_BUFFER_LENGTH
private static final int MAX_BUFFER_LENGTH
maximum buffer to be read is 16 KB.- See Also:
- Constant Field Values
-
-
Method Detail
-
toByteArray
public static byte[] toByteArray(java.io.InputStream in) throws java.io.IOExceptionReturns the byte array.- Throws:
java.io.IOException
-
copy
public static long copy(java.io.InputStream from, java.io.OutputStream to) throws java.io.IOExceptionCopies the data from input stream to output stream.- Throws:
java.io.IOException
-
-