Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Modification of an application

 
Baris Turkkorkmaz
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello.

I have an Java Mobile Phone English-Turkish Dictionary Application.

In the installation file of this mobile application there is a db/ph folder. In this folder there are database files having extensions a-z contain phonetic transcriptions of English words. These phonetic databe files were saved in ANSI format. But, when these phonetic database files are saved in UNICODE format, mobile application program can't run these phonetic database files.

I think that this problem arises from "paramString" string, but I can't do anything for it.

Could you modify this mobile application to run phonetic database files saved in UNICODE format, please?

Thank you.

NOTE-1: The installation file and text files which contains codes of decompiled Java Class Files of the installation file, are compressed to a zip file. But I can't attach this Zip file to my thread because of its big size, so this Zip file can be downloaded from https://rapidshare.com/files/1771617311/MODIFICATION.zip link.

NOTE-2: Here is function, which is in codes of CepIngilizce Java Class File, shows phonetic transcriptions of English words:

private void b(String paramString)
{
this.jdField_a_of_type_JavaLangStringBuffer.delete(0, this.jdField_a_of_type_JavaLangStringBuffer.length());
this.jdField_a_of_type_JavaLangStringBuffer.append("/db/ph/pdb.");
this.jdField_a_of_type_JavaLangStringBuffer.append(paramString.substring(0, 1));
InputStream localInputStream = getClass().getResourceAsStream(this.jdField_a_of_type_JavaLangStringBuffer.toString());
int i1 = 1;
int i2 = 0;
try
{
this.jdField_a_of_type_JavaLangStringBuffer.delete(0, this.jdField_a_of_type_JavaLangStringBuffer.length());
this.jdField_a_of_type_JavaLangStringBuffer.append(paramString);
this.jdField_l_of_type_Int = 0;
Object localObject;
while (i1 != 0)
{
localObject = new StringBuffer();
while (((i2 = localInputStream.read()) != 44) && (i2 != -1))
((StringBuffer)localObject).append((char)i2);
if ((localObject = ((StringBuffer)localObject).toString()).compareTo(paramString) == 0)
{
this.jdField_a_of_type_JavaLangStringBuffer.append(" = ");
while (((i2 = localInputStream.read()) != 10) && (i2 != -1))
this.jdField_a_of_type_JavaLangStringBuffer.append((char)i2);
this.jdField_l_of_type_Int = 1;
}
else
{
while (((i2 = localInputStream.read()) != 10) && (i2 != -1));
}
if ((this.jdField_l_of_type_Int == 1) && (!((String)localObject).startsWith(paramString)))
{
i1 = 0;
if (this.jdField_a_of_type_JavaLangStringBuffer.length() != paramString.length())
i2 = 0;
else
i2 = -1;
}
if (i2 == -1)
{
i1 = 0;
this.jdField_a_of_type_JavaLangStringBuffer.append(" It can not be found in phonetic database. ");
}
}
(localObject = new Alert("Phonetic transcription")).setString(this.jdField_a_of_type_JavaLangStringBuffer.toString());
Display.getDisplay(this).setCurrent((Alert)localObject, this.jdField_c_of_type_JavaxMicroeditionLcduiForm);
return;
}
catch (Exception localException)
{
a("It can not be found or there is a error occured.");
}
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic