public class URIRelativeLocationConverter extends Object implements IIndexLocationConverter
Note: The supplied base URI must end with a forward slash
This location converter is internal-representation-compatible with ResourceContainerRelativeLocationConverter
Constructor and Description |
---|
URIRelativeLocationConverter(URI baseURI)
Constructs an URIRelativeLocationConverter which will relative paths
by prefixing the supplied base URI.
|
Modifier and Type | Method and Description |
---|---|
IIndexFileLocation |
fromInternalFormat(String raw)
Convert a raw string in an internal IIndexFragment implementation specific format to
an IIndexFileLocation or null if the internal format could not be translated.
|
String |
toInternalFormat(IIndexFileLocation location)
Convert a IIndexFileLocation to the internal IIndexFragment implementation specific format
or null if the location could not be translated.
|
public URIRelativeLocationConverter(URI baseURI)
baseURI
- the URI which will form the absolute base that relative paths
are concatenated to. Note: It must end with a forward slash.public IIndexFileLocation fromInternalFormat(String raw)
IIndexLocationConverter
fromInternalFormat
in interface IIndexLocationConverter
public String toInternalFormat(IIndexFileLocation location)
IIndexLocationConverter
toInternalFormat
in interface IIndexLocationConverter
Copyright (c) IBM Corp. and others 2004, 2020. All Rights Reserved.