Happy Holidays! I know that the brain of people is disabled right now, but can you give me solutions or recommendations for caching images in java or j2me. I am trying to download images from a server (input stream) and I want to be able to store them, so I do not need to get them from the server all the time if they need to be displayed again. Thank.
The approach you want probably depends on the number of images, as well as their typical file size. For example, if you use only a small number of images or small images, the example provided by trashgod makes a lot of sense.
, . , . , -.
- collection, , , , , , getImage() cache List<ImageIcon>. A Map<String, ImageIcon> .
getImage()
cache
List<ImageIcon>
Map<String, ImageIcon>
J2ME - ( , Image.createImage()) - , , JSR75, RMS.
Source: https://habr.com/ru/post/1782338/More articles:Combining mySQL tables in one row? - phpautomating sql connections using perl - sqlIs there an equivalent (XNA 3.1 "Effect.CompileFromFIle") for (XNA 4.0)? - compiler-constructionUpdating p: commandButton does not work in ui: include - ajaxHow can I use curl to log in multiple users from one PHP script - phpреализация интерфейса в нескольких версиях - javaКак предполагается использовать заголовки таблиц? - htmlSQL-сервер вставляет несколько строк и увеличивает индекс int - sql-server-2008Strange border opacity behavior in webkit? - cssWhat does \ d in javascript regex do? - javascriptAll Articles