Package org.jboss.vfs.protocol
Class VirtualFileURLConnection
java.lang.Object
java.net.URLConnection
org.jboss.vfs.protocol.AbstractURLConnection
org.jboss.vfs.protocol.VirtualFileURLConnection
Implements basic URLConnection for a VirtualFile
- Version:
- $Revision: 1.1 $
-
Field Summary
FieldsFields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
connect()
getContent
(Class[] classes) int
long
protected String
getName()
Methods inherited from class org.jboss.vfs.protocol.AbstractURLConnection
getContentType, getHeaderField, toURI
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
-
Field Details
-
JAR_CONTENT_TYPE
- See Also:
-
file
-
-
Constructor Details
-
VirtualFileURLConnection
VirtualFileURLConnection(URL url) throws IOException - Throws:
IOException
-
-
Method Details
-
connect
- Specified by:
connect
in classURLConnection
- Throws:
IOException
-
getContent
- Overrides:
getContent
in classURLConnection
- Throws:
IOException
-
getContentLength
public int getContentLength()- Overrides:
getContentLength
in classURLConnection
-
getLastModified
public long getLastModified()- Overrides:
getLastModified
in classURLConnection
-
getInputStream
- Overrides:
getInputStream
in classURLConnection
- Throws:
IOException
-
getPermission
- Overrides:
getPermission
in classURLConnection
- Throws:
IOException
-
getName
- Specified by:
getName
in classAbstractURLConnection
-
getContent
- Overrides:
getContent
in classURLConnection
- Throws:
IOException
-