Package 

Class MediaUtil


  • 
    public class MediaUtil
    
                        

    A Utility class to help with determining information about media

    • Method Summary

      Modifier and Type Method Description
      static String getUriWithProtocol(String uri) If the passed uri contains a protocol (e.g.
      • Methods inherited from class java.lang.Object

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

      • getUriWithProtocol

         static String getUriWithProtocol(String uri)

        If the passed uri contains a protocol (e.g. Http, file) then it will be returned without any changes. If the uri does not contain a protocol then we will assume it is a file

        Parameters:
        uri - The uri to make sure contains a protocol