private static void addCacheDetailsEntry ( SlotReference slot , ZipOutputStream zos , WritableByteChannel channel ) throws IOException { // Record the details of the media being cached, to make it easier to recognize now that we can. MediaDetails details = MetadataFinder . getInstance ( ) . getMediaDetailsFor ( slot ) ; if ( details != null ) { zos . putNextEntry ( new ZipEntry ( CACHE_DETAILS_ENTRY ) ) ; Util . writeFully ( details . getRawBytes ( ) , channel ) ; } }
Record the details of the media being cached to make it easier to recognize now that we have access to that information .