Class Compatibility

java.lang.Object
com.microsoft.kiota.Compatibility

public class Compatibility extends Object
Compatibility methods for android
  • Method Details

    • readAllBytes

      @Nonnull public static byte[] readAllBytes(@Nonnull InputStream inputStream) throws IOException
      INTERNAL METHOD, DO NOT USE DIRECTLY Reads all bytes from the given input stream
      Parameters:
      inputStream - the input stream to read from
      Returns:
      the bytes read from the stream
      Throws:
      IOException - when the stream cannot be closed or read.
    • isBlank

      public static boolean isBlank(@Nullable String str)
      INTERNAL METHOD, DO NOT USE DIRECTLY Checks if the string is null or empty or blank
      Parameters:
      str - the string to check
      Returns:
      true if the string is null or empty or blank