A
Anguel Stankov
Hi all!
I am looking for a possibility to paste a whole Java file (.class or
..jar) into a Java String. This has to happen while coding my app, this
means before compilig it! Later, during runtime, the string will be
written into a new file in the filesystem.
The most easy solution would be to just copy and paste the class file
binary code from an editor into the String. But because the data is
binary this will probably not work (different encodings).
I am looking for any tips or ready programs to be able to convert the
original file into a format, that can be pasted into a String (and can
later be written from the String into a new file in the file system).
I need the whole thing because I am writing an app for a Java-enabled
embedded system (TINI) which has only ROM and RAM. The filesystem is
stored in RAM and is erased on reboot, so I have to recreate it from
my Java app which is loaded from the ROM.
Thank you very much for any help!
Best regards,
Anguel
I am looking for a possibility to paste a whole Java file (.class or
..jar) into a Java String. This has to happen while coding my app, this
means before compilig it! Later, during runtime, the string will be
written into a new file in the filesystem.
The most easy solution would be to just copy and paste the class file
binary code from an editor into the String. But because the data is
binary this will probably not work (different encodings).
I am looking for any tips or ready programs to be able to convert the
original file into a format, that can be pasted into a String (and can
later be written from the String into a new file in the file system).
I need the whole thing because I am writing an app for a Java-enabled
embedded system (TINI) which has only ROM and RAM. The filesystem is
stored in RAM and is erased on reboot, so I have to recreate it from
my Java app which is loaded from the ROM.
Thank you very much for any help!
Best regards,
Anguel