Class 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 int MAX_BUFFER_LENGTH
      maximum buffer to be read is 16 KB.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private IoUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static long copy​(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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • IoUtils

        private IoUtils()
    • Method Detail

      • toByteArray

        public static byte[] toByteArray​(java.io.InputStream in)
                                  throws java.io.IOException
        Returns the byte array.
        Throws:
        java.io.IOException
      • copy

        public static long copy​(java.io.InputStream from,
                                java.io.OutputStream to)
                         throws java.io.IOException
        Copies the data from input stream to output stream.
        Throws:
        java.io.IOException