Go to the source code of this file.
|
Components utils | import ("resource://app/jsmodules/sbProperties.jsm") |
|
function | SB_ProcessFile (aFile, aCallback, aThis) |
| Process the file aFile line by line with the callback function aCallback. More...
|
|
function | SB_DetectCharsetAndProcessFile (aFile, aCallback, aThis) |
| Detect the charset of the file aFile, convert the file encode to the detected one, and process the file line by line with the callback function aCallback. More...
|
|
function | SB_AddItems (aItems, aMediaList, aAddDistinctOnly) |
|
function | SB_ResolveURI (aStringURL, aBaseURI) |
|
Components utils import |
( |
"resource://app/jsmodules/sbProperties.jsm" |
| ) |
|
function SB_AddItems |
( |
|
aItems, |
|
|
|
aMediaList, |
|
|
|
aAddDistinctOnly |
|
) |
| |
function SB_DetectCharsetAndProcessFile |
( |
|
aFile, |
|
|
|
aCallback, |
|
|
|
aThis |
|
) |
| |
Detect the charset of the file aFile, convert the file encode to the detected one, and process the file line by line with the callback function aCallback.
- Parameters
-
aFile | The file to be detected and processed. |
aCallback | The callback function that will be used to process the file. |
aThis | User defined data for the callback function. |
Definition at line 72 of file sbPlaylistHandlerUtils.js.
function SB_ProcessFile |
( |
|
aFile, |
|
|
|
aCallback, |
|
|
|
aThis |
|
) |
| |
Process the file aFile line by line with the callback function aCallback.
- Parameters
-
aFile | The file to be processed. |
aCallback | The callback function that will be used to process the file. |
aThis | User defined data for the callback function. |
Definition at line 46 of file sbPlaylistHandlerUtils.js.
function SB_ResolveURI |
( |
|
aStringURL, |
|
|
|
aBaseURI |
|
) |
| |
const GUESS_CHARSET_MIN_CHAR_COUNT = 256 |
const PR_FLAGS_DEFAULT = -1 |