sbPlaylistHandlerUtils.js File Reference

Go to the source code of this file.

Functions

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)
 

Variables

const PR_RDONLY = -1
 
const PR_FLAGS_DEFAULT = -1
 
const GUESS_CHARSET_MIN_CHAR_COUNT = 256
 

Function Documentation

Components utils import ( "resource://app/jsmodules/sbProperties.jsm"  )
function SB_AddItems (   aItems,
  aMediaList,
  aAddDistinctOnly 
)

Definition at line 139 of file sbPlaylistHandlerUtils.js.

Here is the call graph for this function:

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
aFileThe file to be detected and processed.
aCallbackThe callback function that will be used to process the file.
aThisUser 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
aFileThe file to be processed.
aCallbackThe callback function that will be used to process the file.
aThisUser defined data for the callback function.

Definition at line 46 of file sbPlaylistHandlerUtils.js.

function SB_ResolveURI (   aStringURL,
  aBaseURI 
)

Definition at line 271 of file sbPlaylistHandlerUtils.js.

Variable Documentation

const GUESS_CHARSET_MIN_CHAR_COUNT = 256

Definition at line 35 of file sbPlaylistHandlerUtils.js.

const PR_FLAGS_DEFAULT = -1

Definition at line 32 of file sbPlaylistHandlerUtils.js.

const PR_RDONLY = -1

Definition at line 31 of file sbPlaylistHandlerUtils.js.