diff --git a/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/zip/CityGmlZipEntry.java b/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/zip/CityGmlZipEntry.java index 7d6474bd398f974f50c1188787a5f372345d2a1d..692f4466a889d91d5d29904e2a380efdc7fbc592 100644 --- a/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/zip/CityGmlZipEntry.java +++ b/CityDoctorParent/CityDoctorModel/src/main/java/de/hft/stuttgart/citydoctor2/zip/CityGmlZipEntry.java @@ -20,6 +20,7 @@ public class CityGmlZipEntry implements Serializable { private static final long serialVersionUID = -5732913269959043262L; private final String fileName; + private final String displayName; private transient CityDoctorModel model; private CityGmlZipArchive parentArchive; private boolean decompressed; @@ -85,6 +86,8 @@ public class CityGmlZipEntry implements Serializable { protected CityGmlZipEntry(ZipEntry entry, CityGmlZipArchive parentArchive, boolean decompressed) { this.fileName = entry.getName(); + String[] nameSplits = fileName.split("/"); + this.displayName = nameSplits[nameSplits.length - 1]; if (entry.getSize() != -1) { this.fileSize = entry.getSize(); } @@ -105,6 +108,10 @@ public class CityGmlZipEntry implements Serializable { return fileName; } + public String getDisplayName() { + return displayName; + } + public ZipEntryErrorType getErrorType() { return errorType; }