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 URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconnect()getContent(Class[] classes) intlongprotected StringgetName()Methods inherited from class AbstractURLConnection
getContentType, getHeaderField, toURIMethods inherited from class 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:
connectin classURLConnection- Throws:
IOException
-
getContent
- Overrides:
getContentin classURLConnection- Throws:
IOException
-
getContentLength
public int getContentLength()- Overrides:
getContentLengthin classURLConnection
-
getLastModified
public long getLastModified()- Overrides:
getLastModifiedin classURLConnection
-
getInputStream
- Overrides:
getInputStreamin classURLConnection- Throws:
IOException
-
getPermission
- Overrides:
getPermissionin classURLConnection- Throws:
IOException
-
getName
- Specified by:
getNamein classAbstractURLConnection
-
getContent
- Overrides:
getContentin classURLConnection- Throws:
IOException
-