|
Oxygen XML Editor 13.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@API(type=NOT_EXTENDABLE, src=PUBLIC) public interface UtilAccess
Provides access to utility methods.
Method Summary | |
---|---|
java.lang.String |
correctURL(java.lang.String url)
Corrects the given URL by converting not allowed characters to their escaped representation. |
java.lang.String |
decrypt(java.lang.String toDecrypt)
Decrypts a string using the Oxygen internal encryption system. |
java.lang.String |
encrypt(java.lang.String toEncrypt)
Encrypts a string using the Oxygen internal encryption system. |
java.lang.String |
expandEditorVariables(java.lang.String pathWithEditorVariables,
java.net.URL currentEditedURL)
Try to expand the editor variables in a path |
java.lang.String |
getExtension(java.net.URL url)
Get the file extension for this URL. |
java.lang.String |
getFileName(java.lang.String urlPath)
Get the file name from a file or URL path |
boolean |
isSupportedImageURL(java.net.URL url)
Check if this URL points to a supported image. |
java.io.File |
locateFile(java.net.URL url)
Locate the file on disk corresponding to the URL. |
java.lang.String |
makeRelative(java.net.URL baseURL,
java.net.URL childURL)
Make the child URL relative to the base URL. |
java.net.URL |
removeUserCredentials(java.net.URL url)
Removes the user name and password from the URL if they are present. |
Method Detail |
---|
java.lang.String makeRelative(java.net.URL baseURL, java.net.URL childURL)
The child URL is relatively expressed to the base URL. If it is not possible, the child URL is returned.
For example if the base URL is "file://c:/projects/exml/base.prx" and the child URL is "file://c:/projects/exml/test/someTest.xml" the result will be: "test/someTest.xml"
baseURL
- The base URL.childURL
- The child URL.
childURL
if a relative path cannot be computed.java.lang.String correctURL(java.lang.String url)
url
- The URL to be corrected.
null
.java.net.URL removeUserCredentials(java.net.URL url)
url
- The URL from which the user credentials will be removed.
java.io.File locateFile(java.net.URL url)
url
- The URL
to be checked.
File
from the local file system
or null
if the URL is remote.java.lang.String getExtension(java.net.URL url)
url
- The URL to extract the extension for.
java.lang.String getFileName(java.lang.String urlPath)
urlPath
- An URL path
boolean isSupportedImageURL(java.net.URL url)
url
- The URL
java.lang.String expandEditorVariables(java.lang.String pathWithEditorVariables, java.net.URL currentEditedURL)
pathWithEditorVariables
- The path containing editor variablescurrentEditedURL
- The current edited URL
java.lang.String encrypt(java.lang.String toEncrypt)
toEncrypt
- The string to encrypt.
java.lang.String decrypt(java.lang.String toDecrypt)
toDecrypt
- The string to decrypt.
|
Oxygen XML Editor 13.2 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |