public class AudioResourceUtils
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
parseM3U(java.lang.String inputUrl)
Parses the M3U file and returns the first file name.
|
static java.lang.String |
parsePLS(java.lang.String inputUrl)
Parses the PLS file and returns the first file name.
|
static java.lang.String |
readTextFromUrl(java.net.URL url)
Return the text of the file with the given URL.
|
static java.lang.String |
sanitizeResource(java.lang.String inputResource)
Returns a more practical audio resource name.
|
public static java.lang.String sanitizeResource(java.lang.String inputResource)
inputResource
- The input resource, a file, URL, PLS-file or M3U-file.public static java.lang.String parsePLS(java.lang.String inputUrl)
inputUrl
- The input PLS file.public static java.lang.String parseM3U(java.lang.String inputUrl)
inputUrl
- The input M3U file.public static java.lang.String readTextFromUrl(java.net.URL url)
url
- The URL.