public class OdsFilenameURL
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected AoSession |
aoSess |
protected static java.lang.String |
BinPath |
protected static java.lang.String |
FileRootExtRefName |
protected java.lang.String |
fileRootName |
protected static java.lang.String |
FileRootName |
protected static java.lang.String |
FileSymbols |
protected OdsFileMode |
fm |
protected OdsFileNotation |
fn |
protected java.util.HashMap<java.lang.String,java.lang.String> |
symbolMap |
Constructor and Description |
---|
OdsFilenameURL(AoSession aoSess)
Constructor, use the session for the setting of Avalon.
|
OdsFilenameURL(AoSession aoSess,
java.lang.String fileRootName)
Constructor, use the session for the setting of Avalon.
|
Modifier and Type | Method and Description |
---|---|
java.io.File |
getFile(java.lang.String storageLocation)
Get the file from the storage location.
|
java.lang.String |
getStorageLocation(java.io.File file)
Get the string of the storage location, this string can be used to store
the in the filename_url attribute of the AoExternalComponent
|
java.lang.String |
getStorageLocation(java.io.File file,
java.util.logging.Logger messenger)
Get the string of the storage location, this string can be used to store
the in the filename_url attribute of the AoExternalComponent
|
java.lang.String |
getStorageLocation(java.lang.String filename)
Get the string of the storage location, this string can be used to store
the in the filename_url attribute of the AoExternalComponent
|
protected java.lang.String |
getSymbol(java.lang.String symbol)
Get the symbol, use the map as cache for the symbols of the session.
|
void |
setFileRootName(java.lang.String fileRootName)
Set the name of the FILE_ROOT, the default is FILE_ROOT
for external reference use FILE_ROOT_EXTREF.
|
protected static java.lang.String FileRootName
protected static java.lang.String FileRootExtRefName
protected static java.lang.String FileSymbols
protected static java.lang.String BinPath
protected AoSession aoSess
protected OdsFileMode fm
protected OdsFileNotation fn
protected java.util.HashMap<java.lang.String,java.lang.String> symbolMap
protected java.lang.String fileRootName
public OdsFilenameURL(AoSession aoSess)
aoSess
- the session for the settings.public OdsFilenameURL(AoSession aoSess, java.lang.String fileRootName)
aoSess
- the session for the settings.fileRootName
- the symbol of the file root (FILE_ROOT or FILE_ROOT_EXTREF)public void setFileRootName(java.lang.String fileRootName)
fileRootName
- the file root name.protected java.lang.String getSymbol(java.lang.String symbol)
symbol
- the symbolpublic java.lang.String getStorageLocation(java.lang.String filename) throws AoException
filename
- the filenameAoException
- any occurring ASAM ODS exception.public java.lang.String getStorageLocation(java.io.File file) throws AoException, java.io.IOException
file
- the fileAoException
- any occurring ASAM ODS exception.java.io.IOException
public java.lang.String getStorageLocation(java.io.File file, java.util.logging.Logger messenger) throws AoException, java.io.IOException
file
- the filemessenger
- messenger for debugging outputAoException
- any occurring ASAM ODS exception.java.io.IOException
public java.io.File getFile(java.lang.String storageLocation) throws AoException
storageLocation
- the storage locationAoException
- any occurring ASAM ODS exception