|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.net.URLConnection
org.jboss.net.protocol.file.FileURLConnection
public class 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
MalformedURLException
IOException
Method Detail |
---|
public File getFile()
public void connect() throws IOException
connect
in class URLConnection
FileNotFoundException
IOException
public InputStream getInputStream() throws IOException
getInputStream
in class URLConnection
IOException
public OutputStream getOutputStream() throws IOException
getOutputStream
in class URLConnection
IOException
public String getHeaderField(String name)
getHeaderField
in class URLConnection
public Permission getPermission() throws IOException
getPermission
in class URLConnection
IOException
public long getLastModified()
getLastModified
in class URLConnection
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |