|
|
|
|
|
by diegof79
22 days ago
|
|
This part: > What surprised me was that Java supported processing ZIP files and XML from its standard runtime. Makes me feel old. Java was developed at a time when most people connected to the Internet via dial-up.
That meant two things: the runtime is something you download once and has to work offline, and it has to support compressed packages. JAR files are essentially ZIP files with additional metadata stored as files. So yes, that’s why Java has built-in libraries for ZIP files. The XML came with the “XML fever” of the 2000s. Java was one of the first languages to include XML support, and many of the XML DOM APIs are very Java-oriented. And, of course, it was included in the standard lib because nobody wanted extra module downloads over a slow connection. (and because XML was evolving at that time, it also meant that you had some issues between the SDK libs and user-provided libs) |
|