Appleverse Wizard JARs

0 comentários

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 only
Functions 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.

The last post about Appleverse Wizard

0 comentários

My next post will be the last post about Appleverse Wizard. This post will have 2 download links, to 2 JAR files which I made to use inside Appleverse Wizard. They're very easy to use, and I will explain how to use then in this post. These will be the files:

- plist.jar => With this file, you can edit plist files inside Java easily.
Compatibility: Any OS (Windows, Mac, Linux, ...).
Compatibility Reason: Edition based on String operations.
Future Plans: None.

- icns.jar => With this file, you can convert ICO and PNG files as ICNS, and save Icon, ImageIcon and BufferedImage objects as ICNS too.
Compatibility: Just Mac.
Compatibility Reason: Convert to ICNS uses two Mac terminal codes called: sips and tiff2icns.
Future Plans: Convert ICNS to PNG, and read a ICNS as an Icon, ImageIcon or BufferedImage.

Possibly, in the future, these files will have an update, but not right now.

Hello World!

0 comentários

Wigidrasil project starts today. 26/05/2012