Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

oracle.jdeveloper.vcs.versionhistory
Class VersionHistoryURLHelper

java.lang.Object
  extended by oracle.ide.net.URLFileSystemHelper
      extended by oracle.jdeveloper.vcs.versionhistory.VersionHistoryURLHelper

public class VersionHistoryURLHelper
extends URLFileSystemHelper


Field Summary
static java.lang.String PROTOCOL
           
 
Constructor Summary
VersionHistoryURLHelper()
           
 
Method Summary
 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.
static java.net.URL getRealURL(java.net.URL versionHistoryUrl)
           
 java.lang.String getSuffix(java.net.URL url)
          If a dot ('.') occurs in the path portion of the URL, then all of the text starting at the last dot is returned, including the dot.
static java.net.URL newHistoryURL(java.net.URL realUrl)
           
 java.io.InputStream openInputStream(java.net.URL url)
          Opens an InputStream on the specified URL.
 
Methods inherited from class oracle.ide.net.URLFileSystemHelper
addURLFileSystemListener, appendRelativePath, areEqual, areEqualPathElems, canCreate, canDelete, canonicalize, canRead, canWrite, code, convertSuffix, createReader, createTempFile, delete, ensureSuffix, equals, exists, getBaseParent, getDefaultIcon, getLength, getName, getParent, getPath, getPathNoExt, getPort, getSystemDisplayName, getSystemIcon, getTempDirectory, hashCode, hasSuffix, haveSameAuthority, haveSameHost, haveSamePath, haveSamePort, haveSameProtocol, haveSameQuery, haveSameRef, haveSameUserInfo, isBaseURLFor, isDirectory, isDirectoryPath, isHidden, isLocal, isReadOnly, isRegularFile, isValid, lastModified, list, list, list, listRoots, ls, ls, lsCached, lsCached, mkdir, mkdirs, openOutputStream, removeURLFileSystemListener, rename, setLastModified, setReadOnly, toDisplayString, toEncodedString, toEncodedString, toRelativeSpec, toRelativeSpec, verifyList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PROTOCOL

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

VersionHistoryURLHelper

public VersionHistoryURLHelper()
Method Detail

newHistoryURL

public static java.net.URL newHistoryURL(java.net.URL realUrl)

getRealURL

public static java.net.URL getRealURL(java.net.URL versionHistoryUrl)

getFileName

public java.lang.String getFileName(java.net.URL url)
Description copied from class: URLFileSystemHelper
Returns the name of the file contained by the 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.

Overrides:
getFileName in class URLFileSystemHelper

getPlatformPathName

public java.lang.String getPlatformPathName(java.net.URL url)
Description copied from class: URLFileSystemHelper
Returns the platform-dependent String representation of the 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.

Overrides:
getPlatformPathName in class URLFileSystemHelper
Returns:
The path portion of the specified 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.

getSuffix

public java.lang.String getSuffix(java.net.URL url)
Description copied from class: URLFileSystemHelper
If a dot ('.') occurs in the path portion of the URL, then all of the text starting at the last dot is returned, including the dot. If the last dot is also the last character in the path, then the dot by itself is returned. If there is no dot in the path, then the empty string is returned.

Overrides:
getSuffix in class URLFileSystemHelper

openInputStream

public java.io.InputStream openInputStream(java.net.URL url)
Description copied from class: URLFileSystemHelper
Opens an InputStream on the specified URL.

The default implementation attempts to open the InputStream through the URLConnection associated with the URL. If the URLConnection implementation does not support an InputStream then an UnknownServiceException (a runtime exception) will be thrown.

Overrides:
openInputStream in class URLFileSystemHelper
See Also:
IOException, URLConnection, UnknownServiceException

Oracle Fusion Middleware Java API Reference for Oracle Extension SDK
11g Release 2 (11.1.2.0.0)

E17493-01

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