String (String name) { String entryName = StringUtil.trimLeading(StringUtil.trimTrailing(name.replace('\\', '/'), '/'), '/'); if (entryName.isEmpty()) throw new IllegalArgumentException("Invalid entry name: " + name); return entryName; }