#include <XspfReader.h>
|
static bool | isXmlBase (XML_Char const *attributeKey) |
|
|
class | XspfExtensionReader |
|
Reads a XSPF playlist from a file.
Definition at line 209 of file XspfReader.h.
◆ XspfReader() [1/2]
Creates a new reader.
- Parameters
-
handlerFactory | Factory used to create handlers |
◆ XspfReader() [2/2]
Copy constructor.
- Parameters
-
source | Source to copy from |
◆ ~XspfReader()
◆ enableMaliciousXmlDetection()
void enableMaliciousXmlDetection |
( |
bool |
enabled | ) |
|
◆ isXmlBase()
static bool isXmlBase |
( |
XML_Char const * |
attributeKey | ) |
|
|
static |
Checks if attributeKey
is the xml:base attribute
- Parameters
-
attributeKey | Attribute key to check |
- Returns
- Equality flag
◆ limitLengthPerEntityValue()
void limitLengthPerEntityValue |
( |
bool |
enabled | ) |
|
Enables/disables the restriction on the length of entity values.
- Experimental:
- This feature is marked as experimental.
- Parameters
-
- See also
- setMaxLengthPerEntityValue
- Since
- 1.0.0
◆ limitLookupDepthPerEntityValue()
void limitLookupDepthPerEntityValue |
( |
bool |
enabled | ) |
|
Enables/disables the restriction on the lookup depth of entity values.
- Experimental:
- This feature is marked as experimental.
- Parameters
-
- See also
- setMaxLookupDepthPerEntityValue
- Since
- 1.0.0
◆ limitLookupSumPerEntityValue()
void limitLookupSumPerEntityValue |
( |
bool |
enabled | ) |
|
Enables/disables the restriction on the sum of lookups per entity value.
- Experimental:
- This feature is marked as experimental.
- Parameters
-
- See also
- setMaxLookupSumPerEntityValue
- Since
- 1.0.0
◆ operator=()
Assignment operator.
- Parameters
-
source | Source to copy from |
◆ parseChunks()
Reads an XSPF playlist from a chunk callback.
- Parameters
-
inputCallback | Chunk callback, must not be NULL |
dataCallback | Reader callback that will receive the playlist's information Passing NULL will make the reader use a XspfStrictReaderCallback instance internally. |
baseUri | Absolute external base URI to resolve URIs against |
- Returns
- Error/warning code that aborted parsing or
XSPF_READER_SUCCESS
.
- Since
- 1.0.0rc1
◆ parseFile()
int parseFile |
( |
XML_Char const * |
filename, |
|
|
XspfReaderCallback * |
callback, |
|
|
XML_Char const * |
baseUri |
|
) |
| |
Reads an XSPF playlist from a file.
- Parameters
-
filename | Filename of the file to read |
callback | Reader callback that will receive the playlist's information. Passing NULL will make the reader use a XspfStrictReaderCallback instance internally. |
baseUri | Absolute external base URI to resolve URIs against |
- Returns
- Error/warning code that aborted parsing or
XSPF_READER_SUCCESS
.
- Since
- 1.0.0rc1
◆ parseMemory()
int parseMemory |
( |
char const * |
memory, |
|
|
int |
numBytes, |
|
|
XspfReaderCallback * |
callback, |
|
|
XML_Char const * |
baseUri |
|
) |
| |
Reads an XSPF playlist from a block of memory.
- Parameters
-
memory | Memory block to parse |
numBytes | Size of memory in bytes |
callback | Reader callback that will receive the playlist's information Passing NULL will make the reader use a XspfStrictReaderCallback instance internally. |
baseUri | Absolute external base URI to resolve URIs against |
- Returns
- Error/warning code that aborted parsing or
XSPF_READER_SUCCESS
.
- Since
- 1.0.0rc1
◆ setMaxLengthPerEntityValue()
void setMaxLengthPerEntityValue |
( |
int |
maxLength | ) |
|
Adjusts the limit on the length of entity values.
- Experimental:
- This feature is marked as experimental.
- Parameters
-
maxLength | Inclusive limit to set |
- See also
- limitLengthPerEntityValue
- Since
- 1.0.0
◆ setMaxLookupDepthPerEntityValue()
void setMaxLookupDepthPerEntityValue |
( |
int |
maxLookupDepth | ) |
|
Adjusts the limit on the lookup depth of entity values.
- Experimental:
- This feature is marked as experimental.
- Parameters
-
maxLookupDepth | Inclusive limit to set |
- See also
- limitLookupDepthPerEntityValue
- Since
- 1.0.0
◆ setMaxLookupSumPerEntityValue()
void setMaxLookupSumPerEntityValue |
( |
int |
maxLookupSum | ) |
|
Adjusts the limit on the sum of lookups per entity value.
- Experimental:
- This feature is marked as experimental.
- Parameters
-
maxLookupSum | Inclusive limit to set |
- See also
- limitLookupSumPerEntityValue
- Since
- 1.0.0
The documentation for this class was generated from the following file: