private ValueFilter[] createFilters(ValueFilter[] allFilters) { if (allFilters == null) { return new ValueFilter[0]; } ArrayList l = new ArrayList(); for (int i=0; i < allFilters.length; i++) { if (allFilters[i].archiveMatches(this.getFile())) { l.add(allFilters[i]); } } if (l.size() == allFilters.length) { return allFilters; } else { ValueFilter[] result = new ValueFilter[l.size()]; return (ValueFilter[])l.toArray(result); } }
protected void dump(PrintWriter stream) { if (archive != null) { stream.println("archive=" + archive.getFile()); } stream.println("archiveVersion=" + archiveVersion); if (archive != null) { stream.println("startDate=" + archive.formatTimeMillis(startTimeStamp)); } // stream.println("startTimeStamp=" + startTimeStamp +" tz=" + timeZoneName + " tzOffset=" + timeZoneOffset); // stream.println("timeZone=" + getTimeZone().getDisplayName()); stream.println("systemDirectory=" + systemDirectory); if (archive != null) { stream.println("systemStartDate=" + archive.formatTimeMillis(systemStartTimeStamp)); } stream.println("systemId=" + systemId); stream.println("productVersion=" + productVersion); stream.println("osInfo=" + os); stream.println("machineInfo=" + machine); } }
private ValueFilter[] createFilters(ValueFilter[] allFilters) { if (allFilters == null) { return new ValueFilter[0]; } ArrayList l = new ArrayList(); for (int i=0; i < allFilters.length; i++) { if (allFilters[i].archiveMatches(this.getFile())) { l.add(allFilters[i]); } } if (l.size() == allFilters.length) { return allFilters; } else { ValueFilter[] result = new ValueFilter[l.size()]; return (ValueFilter[])l.toArray(result); } }
String productVersion = null; for ( int i = 0; i < resources.length; i++ ) { String archive = resources[i].getArchive().getFile().getParentFile().getName(); if ( productVersion == null ) { productVersion = resources[i].getArchive().getArchiveInfo().getProductVersion();
/** * Returns an array of stat values that match the specified spec. * If nothing matches then an empty array is returned. */ public StatValue[] matchSpec(StatSpec spec) { if (spec.getCombineType() == StatSpec.GLOBAL) { StatValue[] allValues = matchSpec(new RawStatSpec(spec)); if (allValues.length == 0) { return allValues; } else { ComboValue cv = new ComboValue(allValues); // need to save this in reader's combo value list return new StatValue[]{cv}; } } else { List l = new ArrayList(); StatArchiveReader.StatArchiveFile[] archives = getArchives(); for (int i=0; i < archives.length; i++) { StatArchiveFile f = archives[i]; if (spec.archiveMatches(f.getFile())) { f.matchSpec(spec, l); } } StatValue[] result = new StatValue[l.size()]; return (StatValue[])l.toArray(result); } }
/** * Returns an array of stat values that match the specified spec. * If nothing matches then an empty array is returned. */ public StatValue[] matchSpec(StatSpec spec) { if (spec.getCombineType() == StatSpec.GLOBAL) { StatValue[] allValues = matchSpec(new RawStatSpec(spec)); if (allValues.length == 0) { return allValues; } else { ComboValue cv = new ComboValue(allValues); // need to save this in reader's combo value list return new StatValue[]{cv}; } } else { List l = new ArrayList(); StatArchiveReader.StatArchiveFile[] archives = getArchives(); for (int i=0; i < archives.length; i++) { StatArchiveFile f = archives[i]; if (spec.archiveMatches(f.getFile())) { f.matchSpec(spec, l); } } StatValue[] result = new StatValue[l.size()]; return (StatValue[])l.toArray(result); } }
protected void dump(PrintWriter stream) { if (archive != null) { stream.println("archive=" + archive.getFile()); } stream.println("archiveVersion=" + archiveVersion); if (archive != null) { stream.println("startDate=" + archive.formatTimeMillis(startTimeStamp)); } // stream.println("startTimeStamp=" + startTimeStamp +" tz=" + timeZoneName + " tzOffset=" + timeZoneOffset); // stream.println("timeZone=" + getTimeZone().getDisplayName()); stream.println("systemDirectory=" + systemDirectory); if (archive != null) { stream.println("systemStartDate=" + archive.formatTimeMillis(systemStartTimeStamp)); } stream.println("systemId=" + systemId); stream.println("productVersion=" + productVersion); stream.println("osInfo=" + os); stream.println("machineInfo=" + machine); } }
protected void dump(PrintWriter stream) { stream.println(name + ":" + " file=" + getArchive().getFile() + " id=" + id + (active? "" : " deleted") + " start=" + archive.formatTimeMillis(getFirstTimeMillis())); for (int i=0; i < values.length; i++) { values[i].dump(stream); } }
/** * Return the name of the file this archive was stored in or * an empty string if the archive was not stored in a file. */ public String getArchiveFileName() { if (this.archive != null) { return this.archive.getFile().getPath(); } else { return ""; } }
/** * Return the name of the file this archive was stored in or * an empty string if the archive was not stored in a file. */ public String getArchiveFileName() { if (this.archive != null) { return this.archive.getFile().getPath(); } else { return ""; } }
protected void dump(PrintWriter stream) { stream.println(name + ":" + " file=" + getArchive().getFile() + " id=" + id + (active? "" : " deleted") + " start=" + archive.formatTimeMillis(getFirstTimeMillis())); for (int i=0; i < values.length; i++) { values[i].dump(stream); } }