Class BookGenerator_ar


  • public class BookGenerator_ar
    extends BookGenerator
    The Arabic words can be garbage the view in Eclispe and other eiditors. With Notpad++ it is possible to view it correctly.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private boolean isOnlyArabicCharacters​(java.lang.String word)  
      (package private) boolean isValidLanguage​(java.lang.String word, java.lang.String wikiText)
      Check if a word is a valid word of the current language.
      (package private) void start​(java.io.File file)
      Beginn des einlesend der Daten von dem XML stream
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • BookGenerator_ar

        public BookGenerator_ar()
    • Method Detail

      • start

        void start​(java.io.File file)
            throws java.lang.Exception
        Description copied from class: BookGenerator
        Beginn des einlesend der Daten von dem XML stream
        Overrides:
        start in class BookGenerator
        Throws:
        java.lang.Exception
      • isValidLanguage

        boolean isValidLanguage​(java.lang.String word,
                                java.lang.String wikiText)
        Description copied from class: BookGenerator
        Check if a word is a valid word of the current language. With function getBook().addWord() you can add additional Flexion of the word. The current word self does not need added.
        Specified by:
        isValidLanguage in class BookGenerator
        Parameters:
        word - the test word
        wikiText - die decription from Wiktionary
        Returns:
        true if valid
      • isOnlyArabicCharacters

        private boolean isOnlyArabicCharacters​(java.lang.String word)