java.lang.Object | ||
↳ | com.priint.comet.renderer.io.providers.OpenInPlace | |
↳ | com.priint.comet.renderer.io.providers.OpenInPlaceTranslated |
DocumentAccessProvider implementation to open a document using the original path and translating the path to a representation resolvable for renderer processing the document referred by this DocumentAccessProvider.
We assume, that the document is accessible for the JVM running the rendering library and all renderer instances possibly processing the document referred by this DocumentAccessProvider, but the renderer requires another path representation (e.g. add prefix for drive, IP address...).
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
OpenInPlaceTranslated(Path path, String localPrefix, String remotePrefix)
Constructs a new OpenInPlaceTranslated provider. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String |
getResolvedPath()
Gets the path with replacements as specified with #localPrefix and #remotePrefix |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.priint.comet.renderer.io.providers.OpenInPlace
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.priint.comet.renderer.io.DocumentAccessProvider
|
Constructs a new OpenInPlaceTranslated provider.
Constructs a new OpenInPlaceTranslated provider.
The localPrefix
part of the (local) representation
of the document part is replaced by remorePrefix
.
Example:
If the local path of the document is /usr/shared/documents/mydocument.indd
,
localPrefix is set to "/usr/shared/documents/"
and
remotePrefix is set to "\\192.168.17.6\documents\"
, the
resolved path passed to the renderer is "\\192.168.17.6\documents\mydocument.indd"
path | path denoting the file to be opened |
---|---|
localPrefix | this part at the beginning of the local path presentation is replaced by remotePrefix |
remotePrefix | String to be inserted at the beginning of the string truncated by localPrefix |
Gets the path with replacements as specified with #localPrefix and #remotePrefix