|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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 java.io.File |
file
|
Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
FileURLConnection(java.net.URL url)
|
Method Summary | |
void |
connect()
Checks if the underlying file for this connection exists. |
java.io.File |
getFile()
Returns the underlying file for this connection. |
java.lang.String |
getHeaderField(java.lang.String name)
Provides support for returning the value for the last-modified header. |
java.io.InputStream |
getInputStream()
|
long |
getLastModified()
Returns the last modified time of the underlying file. |
java.io.OutputStream |
getOutputStream()
|
java.security.Permission |
getPermission()
Return a permission for reading of the file |
Methods inherited from class java.net.URLConnection |
addRequestProperty, getAllowUserInteraction, getContent, getContent, getContentEncoding, getContentLength, getContentType, getDate, getDefaultAllowUserInteraction, getDefaultRequestProperty, getDefaultUseCaches, getDoInput, getDoOutput, getExpiration, getFileNameMap, getHeaderField, getHeaderFieldDate, getHeaderFieldInt, getHeaderFieldKey, getHeaderFields, getIfModifiedSince, getRequestProperties, getRequestProperty, getURL, getUseCaches, guessContentTypeFromName, guessContentTypeFromStream, setAllowUserInteraction, setContentHandlerFactory, setDefaultAllowUserInteraction, setDefaultRequestProperty, setDefaultUseCaches, setDoInput, setDoOutput, setFileNameMap, setIfModifiedSince, setRequestProperty, setUseCaches, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected java.io.File file
Constructor Detail |
public FileURLConnection(java.net.URL url) throws java.net.MalformedURLException, java.io.IOException
Method Detail |
public java.io.File getFile()
public void connect() throws java.io.IOException
java.io.FileNotFoundException
java.io.IOException
public java.io.InputStream getInputStream() throws java.io.IOException
java.io.IOException
public java.io.OutputStream getOutputStream() throws java.io.IOException
java.io.IOException
public java.lang.String getHeaderField(java.lang.String name)
public java.security.Permission getPermission() throws java.io.IOException
java.io.IOException
public long getLastModified()
|
||||||||||
PREV CLASS NEXT CLASS (src) | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |