public void close() throws IOException { // stream is closed, modify the cache cacheEntries.put( entryName, toByteArray() ); if ( isTrackLastModified() ) { lastModifiedEntries.put( entryName, System.currentTimeMillis() ); } cacheEntriesWilcard = null; } }
/** * Returns an {@link OutputStream} from the cache entries for writing the content of the given entry. * * @param entryName * @return an {@link OutputStream} */ public OutputStream getEntryOutputStream( String entryName ) { return new EntryByteArrayOutputStream( entryName ); }
public void close() throws IOException { // stream is closed, modify the cache cacheEntries.put(entryName, toByteArray()); if (isTrackLastModified()) { lastModifiedEntries.put(entryName, System.currentTimeMillis()); } cacheEntriesWilcard = null; } }
/** * Returns an {@link OutputStream} from the cache entries for writing the * content of the given entry. * * @param entryName * @return an {@link OutputStream} */ public OutputStream getEntryOutputStream(String entryName) { return new EntryByteArrayOutputStream(entryName); }