@Test public void accessLogEntry() { ContentProvenance meta = new ContentProvenance("some/namespace", URI.create("http: List<String> strings = ProvenanceLog.compileLogEntries(meta); assertThat(strings, is(Arrays.asList("some/namespace", "http: }
static List<String> compileLogEntries(ContentProvenance contentProvenance) { List<String> logEntries; if (CacheLocalReadonly.isJarResource(contentProvenance.getLocalURI())) { logEntries = Collections.emptyList(); } else { logEntries = Arrays.asList(contentProvenance.getNamespace() , contentProvenance.getSourceURI().toString() , contentProvenance.getSha256() == null ? "" : contentProvenance.getSha256() , contentProvenance.getAccessedAt() , contentProvenance.getType()); } return logEntries; }
ProvenanceLog { static List<String> compileLogEntries(ContentProvenance contentProvenance) { List<String> logEntries; if (CacheLocalReadonly.isJarResource(contentProvenance.getLocalURI())) { logEntries = Collections.emptyList(); } else { logEntries = Arrays.asList(contentProvenance.getNamespace() , contentProvenance.getSourceURI().toString() , contentProvenance.getSha256() == null ? "" : contentProvenance.getSha256() , contentProvenance.getAccessedAt() , contentProvenance.getType()); } return logEntries; } }
ProvenanceLog { static List<String> compileLogEntries(ContentProvenance contentProvenance) { List<String> logEntries; if (CacheLocalReadonly.isJarResource(contentProvenance.getLocalURI())) { logEntries = Collections.emptyList(); } else { logEntries = Arrays.asList(contentProvenance.getNamespace() , contentProvenance.getSourceURI().toString() , contentProvenance.getSha256() == null ? "" : contentProvenance.getSha256() , contentProvenance.getAccessedAt() , contentProvenance.getType()); } return logEntries; }  }
ProvenanceLog { static List<String> compileLogEntries(ContentProvenance contentProvenance) { List<String> logEntries; if (CacheLocalReadonly.isJarResource(contentProvenance.getLocalURI())) { logEntries = Collections.emptyList(); } else { logEntries = Arrays.asList(contentProvenance.getNamespace() , contentProvenance.getSourceURI().toString() , contentProvenance.getSha256() == null ? "" : contentProvenance.getSha256() , contentProvenance.getAccessedAt() , contentProvenance.getType()); } return logEntries; }  static void appendProvenanceLog(File cacheDir, ContentProvenance contentProvenance); static File findProvenanceLogFile(String namespace, String cacheDir); static void parseProvenanceStream(InputStream is, ProvenanceEntryListener listener); }
ProvenanceLog { static List<String> compileLogEntries(ContentProvenance contentProvenance) { List<String> logEntries; if (CacheLocalReadonly.isJarResource(contentProvenance.getLocalURI())) { logEntries = Collections.emptyList(); } else { logEntries = Arrays.asList(contentProvenance.getNamespace() , contentProvenance.getSourceURI().toString() , contentProvenance.getSha256() == null ? "" : contentProvenance.getSha256() , contentProvenance.getAccessedAt() , contentProvenance.getType()); } return logEntries; }  static void appendProvenanceLog(File cacheDir, ContentProvenance contentProvenance); static File findProvenanceLogFile(String namespace, String cacheDir); static void parseProvenanceStream(InputStream is, ProvenanceEntryListener listener); final static String PROVENANCE_LOG_FILENAME; }