Import the latest version with Maven using JitPack.
(Check JitPack Enterprise for use in private repositories)
- Non-static use:
- Add FileHandler object to your preferred class.
Multiple FileHandler objects with different values possible. - Use
fileHandler.textfor reading/writing text files.
(EncodingTypeenum available atEncodingUtilitiesclass.) - Use
fileHandler.imagefor reading images.
- Add FileHandler object to your preferred class.
- Static use:
TextConversionclass.
Simple data types that extend IEPrimitive class:
- boolean
- int
- float
- double
- string
Usage:
- Use
getValue()to get its value. - Check if provided string matches key by
boolean compareKey(String key). - Set value:
- from imported value array by
parseStringArrayToValue(String[] valueArray), - manually by
setValue(T value).
- from imported value array by
- Prepare for exporting:
- only value array:
String[] parseValueToStringArray(), - full separated line:
String[] combineKeyAndValue().
- only value array:
- Miscellaneous:
- reset value:
resetValue(), - gat value array from separated line:
String[] separateValue(String[] line).
- reset value:
- boolean array
- int array
- float array
- double array
- string array
Usage: same as primitives
* color (not tested)Usage: same as primitives
A list for containing AbstractImportableExportable objects.
Usage:
- Refer to
listparameter to get actual ArrayList of AbstractImportableExportable. - Call
ArrayList<String[]> exportLines()to get its members prepared for exporting. - Set from imported lines by
importLines(ArrayList<String[]> importableLines).
- Extend
AbstractImportableExportableclass. - Add desired
valueparameter. - Add unimplemented methods from
ImportableExportableInterface:String[] valueArray()- Parsevalueparameter toString[].void setValue(String[] valueArray)- ParseString[]to parametervalue.
- Add constructor from
superand add value as parameter.
Usage:
- Refer to
valueparameter to get its value. - Check if provided string matches key by
boolean compareKey(String key). - Set from imported lines by
importLine(String[] importableLine). - Call
String[] exportLine()to get its key and value prepared for exporting.
Coming soon...