Class JarCacheResource

  • All Implemented Interfaces:
    java.io.Serializable, org.apache.http.client.cache.Resource

    public class JarCacheResource
    extends java.lang.Object
    implements org.apache.http.client.cache.Resource
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.net.URLConnection connection  
      private org.slf4j.Logger log  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      JarCacheResource​(java.net.URL classpath)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void dispose()  
      java.io.InputStream getInputStream()  
      long length()  
      • Methods inherited from class java.lang.Object

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

      • log

        private final org.slf4j.Logger log
      • connection

        private final java.net.URLConnection connection
    • Constructor Detail

      • JarCacheResource

        public JarCacheResource​(java.net.URL classpath)
                         throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • length

        public long length()
        Specified by:
        length in interface org.apache.http.client.cache.Resource
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Specified by:
        getInputStream in interface org.apache.http.client.cache.Resource
        Throws:
        java.io.IOException
      • dispose

        public void dispose()
        Specified by:
        dispose in interface org.apache.http.client.cache.Resource