T
- OS-Specific File-Translations systempublic abstract class SymbolConverterBase<T> extends java.lang.Object implements IGeoInfoHandler
A IGeoInfoHandler
in a chain of IGeoInfoHandler
s that converts IGeoPointInfo.getSymbol()
s from “relative to the containing geo-file” to absolute.
Modifier and Type | Field and Description |
---|---|
protected java.util.Map<java.lang.String,T> |
name2file |
protected IGeoInfoHandler |
nextConverter |
protected T |
rootDir |
Modifier | Constructor and Description |
---|---|
protected |
SymbolConverterBase(T rootDir,
java.util.Map<java.lang.String,T> name2file,
IGeoInfoHandler nextConverter) |
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
getName(T child) |
protected abstract java.lang.String |
getUri(T doc) |
protected abstract boolean |
isExistingDirectory(T dir) |
static boolean |
isGeo(java.lang.String nameLower) |
static boolean |
iszip(java.lang.String nameLower) |
protected abstract T[] |
listFiles(T currentdir) |
boolean |
onGeoInfo(IGeoPointInfo aGeoPoint)
Is called by
GpxReaderBase for every decoded IGeoPointInfo . |
@NonNull protected final T rootDir
@NonNull protected final java.util.Map<java.lang.String,T> name2file
@Nullable protected final IGeoInfoHandler nextConverter
protected SymbolConverterBase(@NonNull T rootDir, @Nullable java.util.Map<java.lang.String,T> name2file, @Nullable IGeoInfoHandler nextConverter)
rootDir
- where all relative paths refer toname2file
- a map that translates relative items to absolute itemsnextConverter
- if not null: next converter in a chain to be executedpublic boolean onGeoInfo(IGeoPointInfo aGeoPoint)
IGeoInfoHandler
Is called by GpxReaderBase
for every decoded IGeoPointInfo
.
onGeoInfo
in interface IGeoInfoHandler
public static boolean isGeo(java.lang.String nameLower)
public static boolean iszip(java.lang.String nameLower)
@NonNull protected abstract java.lang.String getName(@NonNull T child)
@NonNull protected abstract java.lang.String getUri(@NonNull T doc)
protected abstract boolean isExistingDirectory(@Nullable T dir)