Note that there are some explanatory texts on larger screens.

plurals
  1. PORandom-access data object in J2ME
    text
    copied!<p>I'm planning to develop a small J2ME utility for viewing local public transport schedules using a mobile phone. The data part for those is mostly a big bunch of numbers representing the times when the buses arrive or leave.</p> <p>What I'm trying to figure out is what is the best way to store that data. The representation needs to</p> <ol> <li>be considerably small (because of persistent storage limitations of a mobile phone)</li> <li><strike>fit into a single file (for the ease of updating the schedule database afterwards over HTTP)</strike> fit into a constant number of files, i.e. (<code>routes.dat</code>, <code>times.dat</code>, ..., <code>agencies.dat</code>), and <strong>not</strong> (<code>schedule_111.dat</code>, <code>schedule_112.dat</code>, ...)</li> <li>have a random access ability (unserializing the whole data object into memory would be just too much for a mobile phone :))</li> <li>if there's some library for accessing that data format, a Java implementation should be present</li> </ol> <p>In other words, if you had to squeeze a big part of <a href="http://code.google.com/transit/spec/transit_feed_specification.html" rel="nofollow noreferrer" title="Google Transit Feed Specification">GTFS</a>-like data into a mobile device, how would you do that?</p> <p><a href="http://code.google.com/apis/protocolbuffers/" rel="nofollow noreferrer" title="Google Protocol Buffers">Google Protocol Buffers</a> seemed like a good candidate for defining data but it didn't have random access.</p> <p>What would you suggest?</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload