|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectoracle.ide.net.URLFileSystemHelper
oracle.ide.net.HttpURLFileSystemHelper
The HttpURLFileSystemHelper class provides an implementation
of URLFileSystemHelper for http URLs.
| Constructor Summary | |
HttpURLFileSystemHelper()
|
|
| Method Summary | |
boolean |
canCreate(java.net.URL url)
Tests whether the application can create the resource at the specified URL. |
boolean |
exists(java.net.URL url)
Returns true if the specified URL points to a
resource that currently exists; returns false
otherwise. |
long |
getLength(java.net.URL url)
Returns the number of bytes contained in the resource that the specified URL points to. |
protected boolean |
haveSamePort(java.net.URL url1,
java.net.URL url2)
|
long |
lastModified(java.net.URL url)
Returns the last modification time (timestamp) of the resource indicated by the specified URL in milliseconds since
00:00:00 GMT, Jan 1, 1970. |
| Methods inherited from class oracle.ide.net.URLFileSystemHelper |
appendRelativePath, areEqual, areEqualPathElems, canonicalize, canRead, canWrite, convertSuffix, createTempFile, delete, ensureSuffix, equals, getBaseParent, getDefaultIcon, getFileName, getName, getParent, getPath, getPathNoExt, getPlatformPathName, getSuffix, getSystemIcon, hasSuffix, haveSameAuthority, haveSameHost, haveSamePath, haveSameProtocol, haveSameQuery, haveSameRef, haveSameUserInfo, isBaseURLFor, isDirectory, isDirectoryPath, isHidden, isReadOnly, isRegularFile, isValid, list, list, listRoots, ls, ls, mkdir, mkdirs, openInputStream, openOutputStream, renameTo, setLastModified, setReadOnly, toDisplayString, toRelativeSpec, toRelativeSpec |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HttpURLFileSystemHelper()
| Method Detail |
public long getLength(java.net.URL url)
URL points to. If the length cannot be
determined, -1 is returned.
The default implementation attempts to get the content length from
the URLConnection associated with the URL. If that
fails for some reason (e.g. the resource does not exist, there was
some other an I/O exception, etc.), -1 is returned.
getLength in class URLFileSystemHelperURLConnectionpublic long lastModified(java.net.URL url)
URL in milliseconds since
00:00:00 GMT, Jan 1, 1970. If the timestamp can't be determined,
-1 is returned.
The default implementation attemps to get the last modified time
from the URLConnection associated with the URL. If
that fails for some reason (e.g. the resource does not exist, there
was some other I/O exception, etc.), -1 is returned.
lastModified in class URLFileSystemHelperURLConnectionpublic boolean exists(java.net.URL url)
URLFileSystemHelpertrue if the specified URL points to a
resource that currently exists; returns false
otherwise.
The default implementation simply returns false
without doing anything.
exists in class URLFileSystemHelperpublic boolean canCreate(java.net.URL url)
URL.
canCreate in class URLFileSystemHelpertrue if the resource at the specified URL
exists or can be created; false otherwise.
protected boolean haveSamePort(java.net.URL url1,
java.net.URL url2)
haveSamePort in class URLFileSystemHelper
|
Extension SDK | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Copyright ©1997, 2003, Oracle. All rights reserved.