Releases: ryandw11/ODS
Releases · ryandw11/ODS
1.0.5 | Compress Objects
Changes
- Added the the new data type: CompressedObjects. Compressed Objects are like normal objects, but the object data is compressed.
- Added the saveToFile() method.
- Added the importFile() method.
- Added the clear() method.
- Improved the use of generics for the get() method.
Examples
Compressed Objects:
ObjectDataStructure ods = new ObjectDataStructure();
CompressedObjectTag compressedObject = new CompressedObjectTag();
compressedObject.add(ODS.wrap(24));
ods.append(compressedObject);
Save to file method:
// Memory Based ObjectDataStructure object.
ObjectDataStructure ods = new ObjectDataStructure();
// Add tags here.
ods.saveToFile(new File("my_file.ods"), new GZIPCompression());
ODS 1.0.4
Changes
- Added the ability for ODS to now use memory only compared to needed a file.
- Changed the Compressor methods.
- Split code up into internal classes.
- Added the export method.
Examples
// memory only
ObjectDataStructure ods = new ObjectDataStructure();
// memory with existing data inserted in. arrayOfBytes is compressed using ZLIB.
ObjectDataStructure ods = new ObjectDataStructure(arrayOfBytes, new ZLIBCompression());
ODS 1.0.3
Changes:
- Added the ability to add additional compression formats.
- Removed the Compression enum in favor of the Compressor interface.
Example:
1.0.2:
ObjectDataStructure ods = new ObjectDataStructure(new File("test.ods"), Compression.ZLIB);
1.0.3:
ObjectDataStructure ods = new ObjectDataStructure(new File("test.ods"), new ZLIBCompression());
Reduced Overhead
This update removes all libraries significantly reducing the size of ODS.
Object Data Structure Release
This is the first official release of Object Data Structure.
Please check the wiki and readme for information on how to use ODS.
Fat Jar Usage
To use the fat jar please download the ods-1.0.0.jar
from the list attached to this version below. After downloading it you can use ODS in your code by adding the jar to your build path.
Intellij
Press ctrl+alt+shift+s
or go to File > Project Structure
. Then navigate to the Libraries
tab and hit the + button and select the Java
option. Then navigate to where you downloaded the jar and select it.