Extension SDK 10.1.3.36.73

oracle.jdeveloper.merge
Class MergeURLFileSystemHelper

java.lang.Object
  extended byoracle.ide.net.URLFileSystemHelper
      extended byoracle.jdeveloper.merge.MergeURLFileSystemHelper

public class MergeURLFileSystemHelper
extends URLFileSystemHelper

Filesystem helper class for the "ide.merge" protocol used by merge node URLs.

Since:
10.1.3.0.3

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.
 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.
 java.io.InputStream openInputStream(java.net.URL url)
          Overriden to raise an exception on attempting to read the URL.
 
Methods inherited from class oracle.ide.net.URLFileSystemHelper
appendRelativePath, areEqual, areEqualPathElems, canCreate, canDelete, canonicalize, canRead, convertSuffix, createReader, createTempFile, delete, ensureSuffix, equals, getBaseParent, getDefaultIcon, getFileName, getLength, getName, getParent, getPath, getPathNoExt, getPlatformPathName, getSuffix, getSystemDisplayName, getSystemIcon, hasSuffix, haveSameAuthority, haveSameHost, haveSamePath, haveSamePort, haveSameProtocol, haveSameQuery, haveSameRef, haveSameUserInfo, isBaseURLFor, isDirectory, isDirectoryPath, isHidden, isRegularFile, isValid, list, list, listRoots, ls, ls, lsCached, lsCached, mkdir, mkdirs, openOutputStream, rename, setLastModified, setReadOnly, toDisplayString, toEncodedString, toEncodedString, toRelativeSpec, toRelativeSpec
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MERGE_PROTOCOL

public static final java.lang.String MERGE_PROTOCOL
See Also:
Constant Field Values
Constructor Detail

MergeURLFileSystemHelper

public MergeURLFileSystemHelper()
Method Detail

openInputStream

public java.io.InputStream openInputStream(java.net.URL url)
                                    throws java.io.IOException
Overriden to raise an exception on attempting to read the URL.

Overrides:
openInputStream in class URLFileSystemHelper
Parameters:
url - ignored.
Returns:
never, throws an IOException.
Throws:
java.io.IOException - always.
See Also:
IOException, URLConnection, UnknownServiceException

isReadOnly

public boolean isReadOnly(java.net.URL url)
Overriden to allow edits to the text buffer of a merge node.

Overrides:
isReadOnly in class URLFileSystemHelper
Parameters:
url - ignored.
Returns:
false, always.

canWrite

public boolean canWrite(java.net.URL url)
Overriden to allow edits to the text buffer of a merge node.

Overrides:
canWrite in class URLFileSystemHelper
Parameters:
url - ignored.
Returns:
true, always.

exists

public boolean exists(java.net.URL url)
Oveerriden to simulate that the given URL does not exist.

Overrides:
exists in class URLFileSystemHelper
Parameters:
url - ignored.
Returns:
false, always.

lastModified

public long lastModified(java.net.URL url)
Overriden to simulate that the given URL has a zero (Epoch) timestamp.

Overrides:
lastModified in class URLFileSystemHelper
Parameters:
url - ignored.
Returns:
0, always.
See Also:
URLConnection

Extension SDK 10.1.3.36.73

 

Copyright © 1997, 2005, Oracle.All rights reserved.