JBoss VFS 3.1.0.Final-redhat-2

org.jboss.vfs.protocol
Class FileURLConnection

java.lang.Object
  extended by java.net.URLConnection
      extended by org.jboss.vfs.protocol.AbstractURLConnection
          extended by 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
FileURLConnection(URL url)
           
 
Method Summary
 void connect()
           
 File getContent()
           
 int getContentLength()
           
 InputStream getInputStream()
           
 long getLastModified()
           
protected  String getName()
           
 Permission getPermission()
           
 
Methods inherited from class org.jboss.vfs.protocol.AbstractURLConnection
getContentType, getHeaderField, toURI
 
Methods inherited from class java.net.URLConnection
addRequestProperty, getAllowUserInteraction, getConnectTimeout, getContent, getContentEncoding, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getOutputStream, getReadTimeout, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setConnectTimeout, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, 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

FileURLConnection

public FileURLConnection(URL url)
                  throws IOException
Throws:
IOException
Method Detail

getContent

public File getContent()
                throws IOException
Overrides:
getContent in class URLConnection
Throws:
IOException

getContentLength

public int getContentLength()
Overrides:
getContentLength in class URLConnection

getLastModified

public long getLastModified()
Overrides:
getLastModified in class URLConnection

getInputStream

public InputStream getInputStream()
                           throws IOException
Overrides:
getInputStream in class URLConnection
Throws:
IOException

getPermission

public Permission getPermission()
                         throws IOException
Overrides:
getPermission in class URLConnection
Throws:
IOException

connect

public void connect()
             throws IOException
Specified by:
connect in class URLConnection
Throws:
IOException

getName

protected String getName()
Specified by:
getName in class AbstractURLConnection

JBoss VFS 3.1.0.Final-redhat-2

Copyright © 2012 JBoss, A division of Red Hat, Inc. All Rights Reserved.