@Override public String getName() { return mfile.getName(); }
@Override public int compareTo(thredds.inventory.MFile o) { return name.compareTo(o.getName()); }
public MFile findMFileByName(String filename) { for (MFile file : fileMap.values()) if (file.getName().equals(filename)) return file; return null; }
public boolean accept(MFile file) { java.util.regex.Matcher matcher = this.pattern.matcher(file.getName()); return matcher.matches(); }
public boolean accept(MFile file) { java.util.regex.Matcher matcher = this.pattern.matcher(file.getName()); return matcher.matches(); }
public boolean accept(MFile file) { Matcher matcher = this.pattern.matcher(file.getName()); return matcher.matches(); }
public boolean accept(MFile file) { java.util.regex.Matcher matcher = this.pattern.matcher(file.getName()); return matcher.matches(); }
public boolean accept(MFile file) { Matcher matcher = this.pattern.matcher(file.getName()); return matcher.matches(); }
public boolean accept(MFile file) { Matcher matcher = this.pattern.matcher(file.getName()); return matcher.matches(); }
public void removePartition( MCollection partition) { for (MFile mfile : partIndexFiles) { if (mfile.getName().equalsIgnoreCase(partition.getCollectionName())) { List<MFile> part = new ArrayList<>(partIndexFiles); part.remove(mfile); partIndexFiles = part; return; } } } }
public String rename(MFile mfile) { String name = namer.onName ? mfile.getName() : mfile.getPath(); java.util.regex.Matcher matcher = this.pattern.matcher(name); if (!matcher.find()) return null; StringBuffer startTime = new StringBuffer(); matcher.appendReplacement(startTime, namer.replaceString); startTime.delete(0, matcher.start()); if (startTime.length() == 0) return null; return startTime.toString(); } }
public CollectionSingleFile(MFile file, org.slf4j.Logger logger) { super(file.getName(), logger); mfiles.add(file); Path p = Paths.get(file.getPath()); if (p.getParent() != null) this.root = p.getParent().toString(); else this.root = System.getProperty("user.dir"); this.lastModified = file.getLastModified(); }
public CollectionSingleFile(MFile file, org.slf4j.Logger logger) { super(file.getName(), logger); mfiles.add(file); Path p = Paths.get(file.getPath()); if (p.getParent() != null) this.root = p.getParent().toString(); else this.root = System.getProperty("user.dir"); this.lastModified = file.getLastModified(); }
@Override public Date getDate(MFile mfile) { if (useName) return DateFromString.getDateUsingDemarkatedCount(mfile.getName(), dateFormatMark, '#'); else return DateFromString.getDateUsingDemarkatedMatch(mfile.getPath(), dateFormatMark, '#'); }
@Override public Date getDate(MFile mfile) { if (useName) return DateFromString.getDateUsingDemarkatedCount(mfile.getName(), dateFormatMark, '#'); else return DateFromString.getDateUsingDemarkatedMatch(mfile.getPath(), dateFormatMark, '#'); }
@Override public Date getDate(MFile mfile) { if (useName) return DateFromString.getDateUsingDemarkatedCount(mfile.getName(), dateFormatMark, '#'); else return DateFromString.getDateUsingDemarkatedMatch(mfile.getPath(), dateFormatMark, '#'); }