Package org.jboss.vfs.protocol
Class FileURLConnection
- java.lang.Object
-
- java.net.URLConnection
-
- org.jboss.vfs.protocol.AbstractURLConnection
-
- org.jboss.vfs.protocol.FileURLConnection
-
public class FileURLConnection extends AbstractURLConnection
Implementation URLConnection that will delegate to the VFS RootFileSystem.- Version:
- $Revision$
- Author:
- John Bailey
-
-
Field Summary
-
Fields inherited from class java.net.URLConnection
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches
-
-
Constructor Summary
Constructors Constructor Description FileURLConnection(URL url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconnect()FilegetContent()intgetContentLength()InputStreamgetInputStream()longgetLastModified()protected StringgetName()PermissiongetPermission()-
Methods inherited from class org.jboss.vfs.protocol.AbstractURLConnection
getContentType, getHeaderField, toURI
-
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, 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
-
-
-
-
Constructor Detail
-
FileURLConnection
public FileURLConnection(URL url) throws IOException
- Throws:
IOException
-
-
Method Detail
-
getContent
public File getContent() throws IOException
- Overrides:
getContentin classURLConnection- Throws:
IOException
-
getContentLength
public int getContentLength()
- Overrides:
getContentLengthin classURLConnection
-
getLastModified
public long getLastModified()
- Overrides:
getLastModifiedin classURLConnection
-
getInputStream
public InputStream getInputStream() throws IOException
- Overrides:
getInputStreamin classURLConnection- Throws:
IOException
-
getPermission
public Permission getPermission() throws IOException
- Overrides:
getPermissionin classURLConnection- Throws:
IOException
-
connect
public void connect() throws IOException- Specified by:
connectin classURLConnection- Throws:
IOException
-
getName
protected String getName()
- Specified by:
getNamein classAbstractURLConnection
-
-