These are the JAR files:
PLIST
Works in: Any OS (Windows, Mac OS X, Linux, ...)Functions Instruction:
To use plist functions, you need to create a plist object:
Plist plist = new Plist(file);
This method creates a plist object called plist reading the plist file. file is a File object.
There are a lot of functions to use. These are the functions:
- plist.getField(field);
This function returns a String, the value of field key. field is a String object.
- plist.getArray(field);
This function returns an ArrayList of String, the array of field key. field is a String object.
- plist.setField(field, newContent);
This function changes the value of field key to newContent. field and newContent are String objects.
- plist.setArray(field, array);
This function changes the array of field key to array. field is a String object, and array is an ArrayList of String.
- plist.getFieldBoolean(field);
This function returns a Boolean, the value of field key. field is a String object.
- plist.setFieldBoolean(field, state);
This function changes the value of field key to newContent. field is a String object, and state is a Boolean object.
- plist.createField(position, field, content);
This function add a new key called field with content value/array in position position. field is a String object, content can be a String object, a Boolean object or a ArrayList of String, and position is an Integer object.
- plist.getIndexOf(field);
This function returns an integer, the position of field key. field is a String object.
- plist.deleteIndex(index);
This function delete the key in the index position. index is an Integer object.
- plist.delete(field);
This function delete the field key. field is a String object.
- plist.save();
This function save the edited plist in the same file which was loaded at first.
- plist.saveAs(file);
This function save the edited plist in file. file is a File object.
- plist.load();
This function reload the plist file.
- plist.loadFromFile(file);
This function reload the plist file.
- plist.defineFile(file);
This function change the file which is associated with plist to file, then load() and save() functions will work with file instead of the original plist file.
ICNS
Works in: Mac OS X onlyFunctions Instruction:
To use icns functions, you just need to call them.
- icns.Convert.Ico(ico,icns);
This function convert ico ico file to an icns file in icns path. ico and icns are File objects.
- icns.Convert.Png(png,icns);
This function convert png png file to an icns file in icns path. png and icns are File objects.
- icns.Save.IconAs(icon,icns);
This function saves icon Icon object as an icns file in icns path. icon is an Icon object, and icns is a File object.
- icns.Save.ImageIconAs(ii,icns);
This function saves ii ImageIcon object as an icns file in icns path. ii is an ImageIcon object, and icns is a File object.
- icns.Save.BufferedImageAs(bi,icns);
This function saves bi BufferedImage object as an icns file in icns path. bi is a BufferedImage object, and icns is a File object.
And that's it.