|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
|
Fields inherited from class java.net.URLConnection |
allowUserInteraction, connected, doInput, doOutput, ifModifiedSince, url, useCaches |
Constructor Summary | |
FileURLConnection(URL url)
|
Method Summary | |
void |
connect()
Checks if the underlying file for this connection exists. |
File |
getFile()
Returns the underlying file for this connection. |
String |
getHeaderField(String name)
Provides support for returning the value for the last-modified header. |
InputStream |
getInputStream()
|
long |
getLastModified()
Returns the last modified time of the underlying file. |
OutputStream |
getOutputStream()
|
Permission |
getPermission()
Return a permission for reading of the file |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected File file
Constructor Detail |
public FileURLConnection(URL url) throws MalformedURLException, IOException
Method Detail |
public File getFile()
public void connect() throws IOException
FileNotFoundException
IOException
public InputStream getInputStream() throws IOException
IOException
public OutputStream getOutputStream() throws IOException
IOException
public String getHeaderField(String name)
public Permission getPermission() throws IOException
IOException
public long getLastModified()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |