Class ByteArrayIOUtil


  • class ByteArrayIOUtil
    extends java.lang.Object
    Package private class that helps get byte array from InputStream. Needed by the common assets in api.
    Version:
    $Revision: $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.util.logging.Logger log  
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteArrayIOUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static byte[] asByteArray​(java.io.InputStream in)
      Obtains the contents of the specified stream as a byte array
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log

        private static final java.util.logging.Logger log
    • Constructor Detail

      • ByteArrayIOUtil

        ByteArrayIOUtil()
    • Method Detail

      • asByteArray

        static byte[] asByteArray​(java.io.InputStream in)
                           throws java.lang.IllegalArgumentException
        Obtains the contents of the specified stream as a byte array
        Parameters:
        in - InputStream
        Returns:
        the byte[] for the given InputStream
        Throws:
        java.lang.IllegalArgumentException - If the stream was not specified