Java DTV API 1.3
18-Nov-2009

com.sun.dtv.media.language
Interface LanguageControl

All Superinterfaces:
Control
All Known Subinterfaces:
AudioControl, OverlayTextControl

public interface LanguageControl
extends Control

Control to query the supported languages and to set a specific language for a player. Languages must be coded in three letter abbreviations defined by ISO 639-2 and specified in ABNT NBR 15603-2 for the usage in service descriptors.

See Also:
Player

Method Summary
 String getDefaultLanguage()
          Returns the default language of the stream/network signaling.
 String getLanguage()
          Provides the currently selected language to the application.
 String[] getSupportedLanguages()
          Provides a list of all supported language of the current service to the application.
 boolean setLanguage(String language)
          Sets the language for the player, overrides all previously selected languages.
 
Methods inherited from interface javax.media.Control
getControlComponent
 

Method Detail

getSupportedLanguages

String[] getSupportedLanguages()
Provides a list of all supported language of the current service to the application. If no language is supported the array of language is of length zero

Returns:
Array with all the language supported or null if no language support

setLanguage

boolean setLanguage(String language)
                    throws LanguageNotSupportedException,
                           IllegalArgumentException
Sets the language for the player, overrides all previously selected languages.

Parameters:
language - to be used either for Audio or Subtitles coded as three letter String
Returns:
true if setting the language was succesful, false otherwise
Throws:
LanguageNotSupportedException - in case a language is set that is not supported by the system
IllegalArgumentException - if the language String is not three characters long
See Also:
getLanguage()

getLanguage

String getLanguage()
Provides the currently selected language to the application.

Returns:
language code of the currently selected language or null if no language is selected
See Also:
setLanguage(java.lang.String)

getDefaultLanguage

String getDefaultLanguage()
Returns the default language of the stream/network signaling.

Returns:
the default language code of the system or null if no default language is present

Java DTV API 1.3
18-Nov-2009

Copyright © 2008-2009 Sun Microsystems, Inc., 4150 Network Circle, Santa Clara, California 95054, U.S.A. All rights reserved.

U.S. Government Rights - Commercial software. Government users are subject to the Sun Microsystems, Inc. standard license agreement and applicable provisions of the FAR and its supplements. Sun, Sun Microsystems, the Sun logo and Java are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries.Products covered by and information contained in this service manual are controlled by U.S. Export Control laws and may be subject to the export or import laws in other countries. Nuclear, missile, chemical biological weapons or nuclear maritime end uses or end users, whether direct or indirect, are strictly prohibited. Export or reexport to countries subject to U.S. embargo or to entities identified on U.S. export exclusion lists, including, but not limited to, the denied persons and specially designated nationals lists is strictly prohibited.

DOCUMENTATION IS PROVIDED AS IS AND ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE DISCLAIMED, EXCEPT TO THE EXTENT THAT SUCH DISCLAIMERS ARE HELD TO BE LEGALLY INVALID.

Use of this document is subject to license terms.