i18n.uChar.RemoteNameFetcher Extends goog.Disposable
Builds the RemoteNameFetcher object. This object retrieves codepoint names from a remote data source.

Inheritance

Constructor

goog.i18n.uChar.RemoteNameFetcher(dataSourceUri)

Parameters

dataSourceUri : string
URI to the data source.

Instance Methods

Public Protected Private
disposeInternal()
No description.
code »
fetch_(requestTyperequestInputxhrIo)
Fetches a set of codepoint names from the data source.
Arguments:
requestType : !goog.i18n.uChar.RemoteNameFetcher.RequestType_
The request type of the operation. This parameter specifies how the server is called to fetch a particular set of codepoints.
requestInput : string
The input to the request, this is the value that is passed onto the server to complete the request.
xhrIo : !goog.net.XhrIo
The XHRIo object to execute the server call.
code »
getName()
No description.
code »
getNameCallback_(codepointcallback)
Callback on completion of the getName operation.
Arguments:
codepoint : string
The codepoint in hexadecimal format.
callback : function(?string)
The callback function called when the name retrieval is complete, contains a single string parameter with the codepoint name, this parameter will be null if the character name is not defined.
code »
isNameAvailable()
No description.
code »
prefetch()
No description.
code »
prefetchCallback_()
Callback on completion of the prefetch operation.
code »
processResponse_(xhrIo)
Process the response received from the server and store results in the cache.
Arguments:
xhrIo : !goog.net.XhrIo
The XhrIo object used to make the request.
code »
addOnDisposeCallback(callbackopt_scope)
Invokes a callback function when this object is disposed. Callbacks are invoked in the order in which they were added.
Arguments:
callback : function(this:T):?
The callback function.
opt_scope : T=
An optional scope to call the callback in.
code »
dispose() void
Disposes of the object. If the object hasn't already been disposed of, calls #disposeInternal. Classes that extend goog.Disposable should override #disposeInternal in order to delete references to COM objects, DOM nodes, and other disposable objects. Reentrant.
Returns: void  Nothing.
code »
disposeInternal()
Deletes or nulls out any references to COM objects, DOM nodes, or other disposable objects. Classes that extend goog.Disposable should override this method. Not reentrant. To avoid calling it twice, it must only be called from the subclass' disposeInternal method. Everywhere else the public dispose method must be used. For example:
  mypackage.MyClass = function() {
    mypackage.MyClass.base(this, 'constructor');
    // Constructor logic specific to MyClass.
    ...
  };
  goog.inherits(mypackage.MyClass, goog.Disposable);

  mypackage.MyClass.prototype.disposeInternal = function() {
    // Dispose logic specific to MyClass.
    ...
    // Call superclass's disposeInternal at the end of the subclass's, like
    // in C++, to avoid hard-to-catch issues.
    mypackage.MyClass.base(this, 'disposeInternal');
  };
code »
getDisposed() boolean
Use #isDisposed instead. No description.
Returns: boolean  Whether the object has been disposed of.
code »
isDisposed() boolean
No description.
Returns: boolean  Whether the object has been disposed of.
code »
registerDisposable(disposable)
Associates a disposable object with this object so that they will be disposed together.
Arguments:
disposable : goog.disposable.IDisposable
that will be disposed when this object is disposed.
code »

Instance Properties

charNames_ : goog.structs.Map
A cache of all the collected names from the server.
Code »
constructor :
No description.
Code »
dataSourceUri_ :
URI to the data.
Code »
getNameLastListenerKey_ :
Key to the listener on XHR for getName(). Used to clear previous listeners.
Code »
getNameXhrIo_ : goog.net.XhrIo
XHRIo object for getName() asynchronous calls.
Code »
prefetchLastListenerKey_ :
Key to the listener on XHR for prefetch(). Used to clear previous listeners.
Code »
prefetchXhrIo_ : goog.net.XhrIo
XHRIo object for prefetch() asynchronous calls.
Code »
creationStack :
If monitoring the goog.Disposable instances is enabled, stores the creation stack trace of the Disposable instance.
Code »
disposed_ :
Whether the object has been disposed of.
Code »
onDisposeCallbacks_ :
Callbacks to invoke when this object is disposed.
Code »

Static Properties

goog.i18n.uChar.RemoteNameFetcher.logger_ : goog.debug.Logger
A reference to the RemoteNameFetcher logger.
Code »
goog.i18n.uChar.RemoteNameFetcher.superClass_ :
No description.
Code »

Enumerations

goog.i18n.uChar.RemoteNameFetcher.RequestType_ :
Enum for the different request types.
Constants:
BASE_88
No description.
CODEPOINT
No description.
Code »

Package i18n.uChar

Package Reference