code: @Nullable
    public static byte [] getAllBytes (@Nullable @WillClose final InputStream aIS)
    {
      if (aIS == null)
        return null;
  
      try (NonBlockingByteArrayOutputStream aBAOS = getCopy (aIS))
      {
        // No need to copy, because the BAOS goes out of scope anyway
        return aBAOS.getBufferOrCopy ();
      }
    }
docs: Read all bytes from the passed input stream into a byte array.
  
  @param aIS
  The input stream to read from. May be <code>null</code>.
  @return The byte array or <code>null</code> if the input stream is
  <code>null</code>.