All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class multilizer.BundleDictionary

java.lang.Object
   |
   +----multilizer.Dictionary
           |
           +----multilizer.BundleDictionary

public abstract class BundleDictionary
extends Dictionary
An abstract dictionary component for all file based dictionary components. If a file bundle is used the FileName property specifies the language file.

Language File format

See Also:
BinaryDictionary, TextDictionary, ResourceDictionary

Variable Index

 o LANGUAGE_FILE_EXTENSION

Constructor Index

 o BundleDictionary()

Method Index

 o addLanguageStreamListener(LanguageStreamListener)
Adds the specified stream listener to receive language stream aquire events from this dictionary.
 o getFileName()
Gets the base name of the dictionary.
 o getLanguageCount()
Gets the amount of the languages in the dictionary.
 o getLanguageData(int)
Gets the specified language.
 o getLanguageDatas()
Gets the all languages.
 o getLanguageStream()
Returns the language stream for the active language data.
 o getLanguageStream(String)
Opens the language stream and returns it.
 o readLanguage(UnicodeInputStream)
Reads one language from the given language stream.
 o removeLanguageStreamListener(LanguageStreamListener)
Removes the stream aquire listener so it no longer receives stream events from this dictionary.
 o setFileName(String)
Sets the base name of the dictionary.

Variables

 o LANGUAGE_FILE_EXTENSION
 public static final String LANGUAGE_FILE_EXTENSION

Constructors

 o BundleDictionary
 public BundleDictionary()

Methods

 o getLanguageStream
 protected UnicodeInputStream getLanguageStream() throws Exception
Returns the language stream for the active language data.

Throws: Exception
An exception
 o getLanguageStream
 protected UnicodeInputStream getLanguageStream(String fileName) throws Exception
Opens the language stream and returns it.

Throws: Exception
An exception
 o readLanguage
 protected Language readLanguage(UnicodeInputStream in) throws Exception
Reads one language from the given language stream.

Throws: Exception
An exception
 o getLanguageCount
 public int getLanguageCount()
Gets the amount of the languages in the dictionary.

Overrides:
getLanguageCount in class Dictionary
 o getLanguageData
 public Language getLanguageData(int index)
Gets the specified language.

Overrides:
getLanguageData in class Dictionary
 o getLanguageDatas
 public Language[] getLanguageDatas()
Gets the all languages.

Overrides:
getLanguageDatas in class Dictionary
 o setFileName
 public void setFileName(String value)
Sets the base name of the dictionary.

 o getFileName
 public String getFileName()
Gets the base name of the dictionary.

 o addLanguageStreamListener
 public synchronized void addLanguageStreamListener(LanguageStreamListener l)
Adds the specified stream listener to receive language stream aquire events from this dictionary. There can be only one listener at a time.

Parameters:
l - the text dictionary listener
 o removeLanguageStreamListener
 public synchronized void removeLanguageStreamListener(LanguageStreamListener l)
Removes the stream aquire listener so it no longer receives stream events from this dictionary.


All Packages  Class Hierarchy  This Package  Previous  Next  Index