Class LruController


  • public class LruController
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      LruController()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getShortenedPath​(java.lang.String url)  
      static byte[] getVideoCache​(java.lang.String videoPath)  
      static boolean isAlreadyCached​(java.lang.String videoPath)  
      static void putVideoCache​(java.lang.String videoPath, byte[] data)  
      static boolean saveCacheToFile​(android.content.Context context, java.lang.String videoPath)  
      • Methods inherited from class java.lang.Object

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

      • LruController

        public LruController()
    • Method Detail

      • putVideoCache

        public static void putVideoCache​(java.lang.String videoPath,
                                         byte[] data)
      • getVideoCache

        public static byte[] getVideoCache​(java.lang.String videoPath)
      • isAlreadyCached

        public static boolean isAlreadyCached​(java.lang.String videoPath)
      • saveCacheToFile

        public static boolean saveCacheToFile​(android.content.Context context,
                                              java.lang.String videoPath)
      • getShortenedPath

        public static java.lang.String getShortenedPath​(java.lang.String url)