Class Util


  • public final class Util
    extends Object
    • Constructor Detail

      • Util

        public Util()
    • Method Detail

      • trimTrailingSlash

        public static String trimTrailingSlash​(String url)
      • odataTypeNameFromAny

        public static <T> String odataTypeNameFromAny​(Class<T> cls)
      • readFully

        public static int readFully​(InputStream in,
                                    byte[] buffer,
                                    int size)
        Reads size bytes into buffer from InputStream if end of stream not reached. Returns the number of bytes read (which will be size if end of stream not reached).
        Parameters:
        in - input stream
        buffer - destination array to read into
        size - number of bytes to read if available
        Returns:
        number of bytes read