private static String extractFromJar ( Media media ) { try ( InputStream input = media . getInputStream ( ) ) { final File file = UtilStream . getCopy ( media . getFile ( ) . getName ( ) , input ) ; return file . getAbsolutePath ( ) ; } catch ( final IOException exception ) { throw new LionEngineException ( exception ) ; } }
Extract music from jar to temp file .