Save This Page
Home » jboss-5.0.0.CR1-src » org » jboss » net » protocol » file » [javadoc | source]
org.jboss.net.protocol.file
public class: FileURLConnection [javadoc | source]
java.lang.Object
   java.net.URLConnection
      org.jboss.net.protocol.file.FileURLConnection
Provides local file access via URL semantics, correctly returning the last modified time of the underlying file.
Field Summary
protected  File file     
Constructor:
 public FileURLConnection(URL url) throws MalformedURLException, IOException 
Method from org.jboss.net.protocol.file.FileURLConnection Summary:
connect,   getFile,   getHeaderField,   getInputStream,   getLastModified,   getOutputStream,   getPermission
Methods from java.net.URLConnection:
addRequestProperty,   connect,   getAllowUserInteraction,   getConnectTimeout,   getContent,   getContent,   getContentEncoding,   getContentLength,   getContentType,   getDate,   getDefaultAllowUserInteraction,   getDefaultRequestProperty,   getDefaultUseCaches,   getDoInput,   getDoOutput,   getExpiration,   getFileNameMap,   getHeaderField,   getHeaderField,   getHeaderFieldDate,   getHeaderFieldInt,   getHeaderFieldKey,   getHeaderFields,   getIfModifiedSince,   getInputStream,   getLastModified,   getOutputStream,   getPermission,   getReadTimeout,   getRequestProperties,   getRequestProperty,   getURL,   getUseCaches,   guessContentTypeFromName,   guessContentTypeFromStream,   setAllowUserInteraction,   setConnectTimeout,   setContentHandlerFactory,   setDefaultAllowUserInteraction,   setDefaultRequestProperty,   setDefaultUseCaches,   setDoInput,   setDoOutput,   setFileNameMap,   setIfModifiedSince,   setReadTimeout,   setRequestProperty,   setUseCaches,   toString
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.jboss.net.protocol.file.FileURLConnection Detail:
 public  void connect() throws IOException 
    Checks if the underlying file for this connection exists.
 public File getFile() 
    Returns the underlying file for this connection.
 public String getHeaderField(String name) 
    Provides support for returning the value for the last-modified header.
 public InputStream getInputStream() throws IOException 
 public long getLastModified() 
    Returns the last modified time of the underlying file.
 public OutputStream getOutputStream() throws IOException 
 public Permission getPermission() throws IOException 
    Return a permission for both read & write since both input and output streams are supported.