Build 1.0_r1(from source)

android.speech.recognition.impl
Class NBestRecognitionResultImpl

java.lang.Object
  extended by android.speech.recognition.impl.NBestRecognitionResultImpl
All Implemented Interfaces:
NBestRecognitionResult, RecognitionResult

public class NBestRecognitionResultImpl
extends Object
implements NBestRecognitionResult


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.speech.recognition.NBestRecognitionResult
NBestRecognitionResult.Entry
 
Constructor Summary
NBestRecognitionResultImpl(long nativeObject)
          Creates a new NBestRecognitionResultImpl.
 
Method Summary
 VoicetagItem createVoicetagItem(String VoicetagId, VoicetagItemListener listener)
          Creates a new VoicetagItem if the last recognition was an enrollment operation.
protected  void finalize()
          Called by the virtual machine when there are no longer any (non-weak) references to the receiver.
 NBestRecognitionResult.Entry getEntry(int index)
          Returns the n-best entry that contains key-value pairs associated with the recognition result.
 int getSize()
          Returns the number of entries in the n-best list.
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NBestRecognitionResultImpl

public NBestRecognitionResultImpl(long nativeObject)
Creates a new NBestRecognitionResultImpl.

Parameters:
nativeObject - a reference to the native object
Method Detail

getSize

public int getSize()
Description copied from interface: NBestRecognitionResult
Returns the number of entries in the n-best list.

Specified by:
getSize in interface NBestRecognitionResult
Returns:
the number of entries in the n-best list

getEntry

public NBestRecognitionResult.Entry getEntry(int index)
Description copied from interface: NBestRecognitionResult
Returns the n-best entry that contains key-value pairs associated with the recognition result.

Specified by:
getEntry in interface NBestRecognitionResult
Parameters:
index - the index of the n-best entry
Returns:
null if all active GrammarConfiguration.grammarToMeaning() return null

createVoicetagItem

public VoicetagItem createVoicetagItem(String VoicetagId,
                                       VoicetagItemListener listener)
Description copied from interface: NBestRecognitionResult
Creates a new VoicetagItem if the last recognition was an enrollment operation.

Specified by:
createVoicetagItem in interface NBestRecognitionResult
Parameters:
VoicetagId - string voicetag unique id value.
listener - listens for Voicetag events
Returns:
the resulting VoicetagItem

finalize

protected void finalize()
                 throws Throwable
Description copied from class: Object
Called by the virtual machine when there are no longer any (non-weak) references to the receiver. Subclasses can use this facility to guarantee that any associated resources are cleaned up before the receiver is garbage collected. Uncaught exceptions which are thrown during the running of the method cause it to terminate immediately, but are otherwise ignored.

Note: The virtual machine assumes that the implementation in class Object is empty.

Overrides:
finalize in class Object
Throws:
Throwable - The virtual machine ignores any exceptions which are thrown during finalization.

Build 1.0_r1(from source)

Please submit a feedback, bug or feature