public class PlaylistParser
extends java.lang.Object
| Constructor and Description |
|---|
PlaylistParser() |
| Modifier and Type | Method and Description |
|---|---|
Playlist |
parse(java.io.InputStream inputStream,
Format format,
Encoding encoding)
This will close the InputStream.
|
Playlist |
parse(java.io.InputStream inputStream,
Format format,
Extension extension)
This will close the InputStream.
|
Playlist |
parse(java.io.InputStream inputStream,
Format format,
java.lang.String filename)
This will close the InputStream.
|
public Playlist parse(java.io.InputStream inputStream, Format format, java.lang.String filename) throws java.io.IOException, ParseException
inputStream - an open input stream positioned at the beginning of the fileformat - requires the playlist to be this formatfilename - the extension of this filename will be used to determine the encoding required of the playlistjava.io.IOException - if the InputStream throws an IOExceptionParseException - if the data is not formatted properlypublic Playlist parse(java.io.InputStream inputStream, Format format, Extension extension) throws java.io.IOException, ParseException
inputStream - an open input stream positioned at the beginning of the fileformat - requires the playlist to be this formatextension - requires the playlist be encoded according to this extension {M3U : windows-1252, M3U8 : utf-8}java.io.IOException - if the InputStream throws an IOExceptionParseException - if the data is not formatted properlypublic Playlist parse(java.io.InputStream inputStream, Format format, Encoding encoding) throws java.io.IOException, ParseException
inputStream - an open input stream positioned at the beginning of the fileformat - requires the playlist to be this formatencoding - required encoding for the playlistjava.io.IOException - if the InputStream throws an IOExceptionParseException - if the data is not formatted properly