Class VirtualFileURLConnection


  • class VirtualFileURLConnection
    extends AbstractURLConnection
    Implements basic URLConnection for a VirtualFile
    Version:
    $Revision: 1.1 $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private VirtualFile file  
      (package private) static java.lang.String JAR_CONTENT_TYPE  
      • Fields inherited from class java.net.URLConnection

        allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void connect()  
      java.lang.Object getContent()  
      java.lang.Object getContent​(java.lang.Class[] classes)  
      int getContentLength()  
      java.io.InputStream getInputStream()  
      long getLastModified()  
      protected java.lang.String getName()  
      java.security.Permission getPermission()  
      • Methods inherited from class java.net.URLConnection

        addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContentEncoding, getContentLengthLong, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFieldLong, getHeaderFields, getIfModifiedSince, getOutputStream, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setReadTimeout, setRequestProperty, setUseCaches, toString
      • Methods inherited from class java.lang.Object

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

      • VirtualFileURLConnection

        VirtualFileURLConnection​(java.net.URL url)
                          throws java.io.IOException
        Throws:
        java.io.IOException
    • Method Detail

      • connect

        public void connect()
                     throws java.io.IOException
        Specified by:
        connect in class java.net.URLConnection
        Throws:
        java.io.IOException
      • getContent

        public java.lang.Object getContent()
                                    throws java.io.IOException
        Overrides:
        getContent in class java.net.URLConnection
        Throws:
        java.io.IOException
      • getContentLength

        public int getContentLength()
        Overrides:
        getContentLength in class java.net.URLConnection
      • getLastModified

        public long getLastModified()
        Overrides:
        getLastModified in class java.net.URLConnection
      • getInputStream

        public java.io.InputStream getInputStream()
                                           throws java.io.IOException
        Overrides:
        getInputStream in class java.net.URLConnection
        Throws:
        java.io.IOException
      • getPermission

        public java.security.Permission getPermission()
                                               throws java.io.IOException
        Overrides:
        getPermission in class java.net.URLConnection
        Throws:
        java.io.IOException
      • getContent

        public java.lang.Object getContent​(java.lang.Class[] classes)
                                    throws java.io.IOException
        Overrides:
        getContent in class java.net.URLConnection
        Throws:
        java.io.IOException