Package io.grpc.protobuf.services
Class BinaryLogProvider.IoUtils
java.lang.Object
io.grpc.protobuf.services.BinaryLogProvider.IoUtils
- Enclosing class:
BinaryLogProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
maximum buffer to be read is 16 KB. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic long
copy
(InputStream from, OutputStream to) Copies the data from input stream to output stream.static byte[]
Returns the byte array.
-
Field Details
-
MAX_BUFFER_LENGTH
private static final int MAX_BUFFER_LENGTHmaximum buffer to be read is 16 KB.- See Also:
-
-
Constructor Details
-
IoUtils
private IoUtils()
-
-
Method Details
-
toByteArray
Returns the byte array.- Throws:
IOException
-
copy
Copies the data from input stream to output stream.- Throws:
IOException
-