Class VideoResource

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private Video video  
    • Constructor Summary

      Constructors 
      Constructor Description
      VideoResource​(java.lang.String primaryKey, java.net.URI resourceLocator)
      Do not use directly.
    • Field Detail

      • video

        private final Video video
    • Constructor Detail

      • VideoResource

        public VideoResource​(java.lang.String primaryKey,
                             java.net.URI resourceLocator)
                      throws java.io.IOException
        Do not use directly.
        Parameters:
        primaryKey - The primary key.
        resourceLocator - The URI used when loading this resource.
        Throws:
        java.io.IOException - if the URI is malformed.
    • Method Detail

      • preload

        public void preload()
        Preload the resource if possible/meaningful.
        Specified by:
        preload in class Resource
      • getVideo

        public Video getVideo()
        Gets the Video represented by this resource.
        Returns:
        The Video in its original size.