Documentation

Trace:

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
jvx:common:util:classes [2020/06/15 14:43]
cduncan [More classes]
jvx:common:util:classes [2020/06/29 13:57]
cduncan [The Object Cache]
Line 9: Line 9:
 An XML parser is required to read XML files. Various frameworks exist that allow reading and saving of XML files. However, accessing the individual elements is often solved tediously using object trees. An XML parser is required to read XML files. Various frameworks exist that allow reading and saving of XML files. However, accessing the individual elements is often solved tediously using object trees.
  
-JVx contains the classes XmlWorker and XmlNode which allow direct access to tags. In addition, attributes can be accessed like sub tags. Performance and memory use are also very low.+JVx contains the classes XmlWorker and XmlNodewhich allow direct access to tags. In addition, attributes can be accessed like sub tags. Performance and memory use are also very low.
  
-In the following example we read an XML file, change a Sub Tag and save the result as a new XML file:+In the following examplewe read an XML file, change a sub tag, and save the result as a new XML file:
  
 <file java> <file java>
Line 23: Line 23:
 </​file>​ </​file>​
  
-More Details ​about [[jvx:​common:​util:​xml|XML Handling]].+More details ​about [[jvx:​common:​util:​xml|XML Handling]].
 ==== Working With Arrays ==== ==== Working With Arrays ====
  
-Array operations are always tedious coding work, and every developer could easily do without ​it. Removing a single element from an array is not rocket science, but there is no standard function available for this task. And who would not like to search an array for an element without coding a loop? +Array operations are always tedious coding work, and every developer could easily do without. Removing a single element from an array is not rocket science, but there is no standard function available for this task. And who would not like to search an array for an element without coding a loop? 
  
 With ArrayUtil significant array operations were implemented,​ which also fully include the list interface. We gain performance compared to standard lists as an added benefit. With ArrayUtil significant array operations were implemented,​ which also fully include the list interface. We gain performance compared to standard lists as an added benefit.
Line 36: Line 36:
 This is what the ObjectCache is for, which handles objects statically, for certain time periods or permanently,​ within a VM. This is what the ObjectCache is for, which handles objects statically, for certain time periods or permanently,​ within a VM.
  
-This can be compared to a static hash table, complement ​by a timeout.+This can be compared to a static hash table complemented ​by a timeout.
  
 ==== Ordered Hashtable ==== ==== Ordered Hashtable ====
This website uses cookies for visitor traffic analysis. By using the website, you agree with storing the cookies on your computer.More information