|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object oracle.ide.net.URLFileSystemHelper oracle.jdeveloper.merge.MergeURLFileSystemHelper
public class MergeURLFileSystemHelper
Filesystem helper class for the "ide.merge" protocol used by merge node URLs.
Field Summary | |
---|---|
static java.lang.String |
MERGE_PROTOCOL
|
Constructor Summary | |
---|---|
MergeURLFileSystemHelper()
|
Method Summary | |
---|---|
boolean |
canWrite(java.net.URL url)
Overriden to allow edits to the text buffer of a merge node. |
boolean |
exists(java.net.URL url)
Oveerriden to simulate that the given URL does not exist. |
java.lang.String |
getFileName(java.net.URL url)
Returns the name of the file contained by the URL , not
including any protocol, hostname authentication, directory path,
anchor, or query. |
java.lang.String |
getPlatformPathName(java.net.URL url)
Returns the platform-dependent String representation of the URL ; the returned string should be considered acceptable
for users to read. |
boolean |
isReadOnly(java.net.URL url)
Overriden to allow edits to the text buffer of a merge node. |
long |
lastModified(java.net.URL url)
Overriden to simulate that the given URL has a zero (Epoch) timestamp. |
static java.net.URL |
newMergeURL(CompareContributor source,
CompareContributor target,
CompareContributor ancestor)
|
static java.net.URL |
newMergeURL(java.net.URL url)
|
java.io.InputStream |
openInputStream(java.net.URL url)
Overriden to raise an exception on attempting to read the URL. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String MERGE_PROTOCOL
Constructor Detail |
---|
public MergeURLFileSystemHelper()
Method Detail |
---|
public static java.net.URL newMergeURL(java.net.URL url)
public static java.net.URL newMergeURL(CompareContributor source, CompareContributor target, CompareContributor ancestor)
public java.lang.String getFileName(java.net.URL url)
URLFileSystemHelper
URL
, not
including any protocol, hostname authentication, directory path,
anchor, or query. This simply returns the simple filename. For
example, if you pass in an URL
whose string representation
is:
protocol://host:1010/dir1/dir2/file.ext#anchor?query
the returned value is "file.ext
" (without the
quotes).
The returned file name should only be used for display purposes
and not for opening streams or otherwise trying to locate the
resource indicated by the URL
.
getFileName
in class URLFileSystemHelper
public java.lang.String getPlatformPathName(java.net.URL url)
URLFileSystemHelper
URL
; the returned string should be considered acceptable
for users to read. In general, the returned string should omit
as many parts of the URL
as possible. For the "file"
protocol, therefore, the platform pathname should just be the
pathname alone (no protocol) using the appropriate file separator
character for the current platform. For other protocols, it may
be necessary to reformat the URL
string into a more
human-readable form. That decision is left to each
URLFileSystemHelper
implementor.
The default implementation returns url.toString()
.
If the URL
is null
, the empty string is
returned.
getPlatformPathName
in class URLFileSystemHelper
URL
in
platform-dependent notation. This value should only be used for
display purposes and not for opening streams or otherwise trying
to locate the document.public java.io.InputStream openInputStream(java.net.URL url)
openInputStream
in class URLFileSystemHelper
url
- ignored.
IOException
.
java.io.IOException
- always.IOException
,
URLConnection
,
UnknownServiceException
public boolean isReadOnly(java.net.URL url)
isReadOnly
in class URLFileSystemHelper
url
- ignored.
false
, always.public boolean canWrite(java.net.URL url)
canWrite
in class URLFileSystemHelper
url
- ignored.
true
, always.public boolean exists(java.net.URL url)
exists
in class URLFileSystemHelper
url
- ignored.
false
, always.public long lastModified(java.net.URL url)
lastModified
in class URLFileSystemHelper
url
- ignored.
0
, always.URLConnection
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK Reference 11g Release 1 (11.1.1) E13403-04 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |