public class MergeURLFileSystemHelper extends URLFileSystemHelper
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
MERGE_PROTOCOL  | 
| Constructor and Description | 
|---|
MergeURLFileSystemHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
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. 
 | 
addURLFileSystemListener, appendRelativePath, areEqual, areEqualPathElems, canCreate, canDelete, canonicalize, canRead, code, convertSuffix, createReader, createTempFile, delete, ensureSuffix, equals, getBaseParent, getDefaultIcon, getLength, getName, getParent, getPath, getPathNoExt, getPort, getSuffix, getSystemDisplayName, getSystemIcon, getTempDirectory, hashCode, hasSuffix, haveSameAuthority, haveSameHost, haveSamePath, haveSamePort, haveSameProtocol, haveSameQuery, haveSameRef, haveSameUserInfo, isBaseURLFor, isDirectory, isDirectoryPath, isHidden, isLocal, isRegularFile, isValid, list, list, list, listRoots, ls, ls, lsCached, lsCached, mkdir, mkdirs, openOutputStream, removeURLFileSystemListener, rename, setLastModified, setReadOnly, toDisplayString, toEncodedString, toEncodedString, toRelativeSpec, toRelativeSpec, verifyListpublic static final java.lang.String MERGE_PROTOCOL
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)
URLFileSystemHelperURL, 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 URLFileSystemHelperpublic java.lang.String getPlatformPathName(java.net.URL url)
URLFileSystemHelperURL; 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 URLFileSystemHelperURL 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 URLFileSystemHelperurl - ignored.IOException.java.io.IOException - always.IOException, 
URLConnection, 
UnknownServiceExceptionpublic boolean isReadOnly(java.net.URL url)
isReadOnly in class URLFileSystemHelperurl - ignored.false, always.public boolean canWrite(java.net.URL url)
canWrite in class URLFileSystemHelperurl - ignored.true, always.public boolean exists(java.net.URL url)
exists in class URLFileSystemHelperurl - ignored.false, always.public long lastModified(java.net.URL url)
lastModified in class URLFileSystemHelperurl - ignored.0, always.URLConnection