Documentation generator: JsDoc Toolkit 2.4.0
Template: Codeview 1.2
Generated on: 2012-11-19 0:05

Namespace SpiderGL.IO

The SpiderGL.IO namespace.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
The SpiderGL.IO namespace.

Method Summary

Method Attributes Method Name and Description
<static>  
SpiderGL.IO.readBinary(url)
Synchronous binary data read.
<static>  
SpiderGL.IO.readJSON(url)
Synchronous JSON object read.
<static>  
SpiderGL.IO.readText(url)
Synchronous text read.
<static>  
SpiderGL.IO.requestBinary(url, options)
Asynchronous binary read.
<static>  
SpiderGL.IO.requestImage(url, options)
Asynchronous image read.
<static>  
SpiderGL.IO.requestJSON(url, options)
Asynchronous JSON read.
<static>  
SpiderGL.IO.requestText(url, options)
Asynchronous text read.

Namespace Detail

SpiderGL.IO
The SpiderGL.IO namespace.

Method Detail

  • <static> {ArrayBuffer} SpiderGL.IO.readBinary(url)
    Synchronous binary data read. This function is equivalent to issuing a SpiderGL.IO.BinaryRequest with the async flag set to false and no callbacks, and then reading its buffer property.
    Parameters:
    {string} url
    The URL of the content
    Returns:
    {ArrayBuffer} The content binary data, or null on failure.
  • <static> {object} SpiderGL.IO.readJSON(url)
    Synchronous JSON object read. This function is equivalent to issuing a SpiderGL.IO.JSONRequest with the async flag set to false and no callbacks, and then reading its json property.
    Parameters:
    {string} url
    The URL of the content
    Returns:
    {object} The JSON-parsed object, or null on failure.
  • <static> {string} SpiderGL.IO.readText(url)
    Synchronous text read. This function is equivalent to issuing a SpiderGL.IO.TextRequest with the async flag set to false and no callbacks, and then reading its text property.
    Parameters:
    {string} url
    The URL of the content
    Returns:
    {string} The text content, or null on failure.
  • <static> {SpiderGL.IO.BinaryRequest} SpiderGL.IO.requestBinary(url, options)
    Asynchronous binary read. This function creates a SpiderGL.IO.BinaryRequest with the async and seng flags set to true, overriding their values in the options parameter.
    Parameters:
    {string} url
    The URL of the content
    {object} options
    The request options.
    Returns:
    {SpiderGL.IO.BinaryRequest} The internally generated SpiderGL.IO.BinaryRequest.
  • <static> {SpiderGL.IO.ImageRequest} SpiderGL.IO.requestImage(url, options)
    Asynchronous image read. This function creates a SpiderGL.IO.ImageRequest with the async and seng flags set to true, overriding their values in the options parameter.
    Parameters:
    {string} url
    The URL of the content
    {object} options
    The request options.
    Returns:
    {SpiderGL.IO.ImageRequest} The internally generated SpiderGL.IO.ImageRequest.
  • <static> {SpiderGL.IO.JSONRequest} SpiderGL.IO.requestJSON(url, options)
    Asynchronous JSON read. This function creates a SpiderGL.IO.JSONRequest with the async and seng flags set to true, overriding their values in the options parameter.
    Parameters:
    {string} url
    The URL of the content
    {object} options
    The request options.
    Returns:
    {SpiderGL.IO.JSONRequest} The internally generated SpiderGL.IO.JSONRequest.
  • <static> {SpiderGL.IO.TextRequest} SpiderGL.IO.requestText(url, options)
    Asynchronous text read. This function creates a SpiderGL.IO.TextRequest with the async and seng flags set to true, overriding their values in the options parameter.
    Parameters:
    {string} url
    The URL of the content
    {object} options
    The request options.
    Returns:
    {SpiderGL.IO.TextRequest} The internally generated SpiderGL.IO.TextRequest.