Package com.dd.plist
Class PropertyListConverter
java.lang.Object
com.dd.plist.PropertyListConverter
Converts files between different property list formats.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidconvertToASCII(File in, File out) Converts a given property list file into ASCII format.static voidconvertToASCII(Path in, Path out) Converts a given property list file into ASCII format.static voidconvertToBinary(File in, File out) Converts a given property list file into the OS X and iOS binary format.static voidconvertToBinary(Path in, Path out) Converts a given property list file into the OS X and iOS binary format.static voidconvertToGnuStepASCII(File in, File out) Converts a given property list file into ASCII format.static voidconvertToXml(File in, File out) Converts a given property list file into the OS X and iOS XML format.static voidconvertToXml(Path in, Path out) Converts a given property list file into the OS X and iOS XML format.
-
Constructor Details
-
PropertyListConverter
private PropertyListConverter()Prevents instantiation.
-
-
Method Details
-
convertToASCII
public static void convertToASCII(File in, File out) throws ParserConfigurationException, ParseException, SAXException, PropertyListFormatException, IOException Converts a given property list file into ASCII format.- Parameters:
in- The source file.out- The target file. If the file's parent directory does not exist, it will be created.- Throws:
ParserConfigurationException- If a document builder for parsing an XML property list could not be created. This should not occur.IOException- If any I/O error occurs while reading the input file or writing the output file.SAXException- If any parse error occurs.PropertyListFormatException- If the given property list has an invalid format.ParseException- If a date string could not be parsed.
-
convertToASCII
public static void convertToASCII(Path in, Path out) throws ParserConfigurationException, ParseException, SAXException, PropertyListFormatException, IOException Converts a given property list file into ASCII format.- Parameters:
in- The source file path.out- The target file path.- Throws:
ParserConfigurationException- If a document builder for parsing an XML property list could not be created. This should not occur.IOException- If any I/O error occurs while reading the input file or writing the output file.SAXException- If any parse error occurs.PropertyListFormatException- If the given property list has an invalid format.ParseException- If a date string could not be parsed.
-
convertToGnuStepASCII
public static void convertToGnuStepASCII(File in, File out) throws ParserConfigurationException, ParseException, SAXException, PropertyListFormatException, IOException Converts a given property list file into ASCII format.- Parameters:
in- The source file.out- The target file. If the file's parent directory does not exist, it will be created.- Throws:
ParserConfigurationException- If a document builder for parsing an XML property list could not be created. This should not occur.IOException- If any I/O error occurs while reading the input file or writing the output file.SAXException- If any parse error occurs.PropertyListFormatException- If the given property list has an invalid format.ParseException- If a date string could not be parsed.
-
convertToBinary
public static void convertToBinary(File in, File out) throws IOException, ParserConfigurationException, ParseException, SAXException, PropertyListFormatException Converts a given property list file into the OS X and iOS binary format.- Parameters:
in- The source file.out- The target file. If the file's parent directory does not exist, it will be created.- Throws:
ParserConfigurationException- If a document builder for parsing an XML property list could not be created. This should not occur.IOException- If any I/O error occurs while reading the input file or writing the output file.SAXException- If any parse error occurs.PropertyListFormatException- If the given property list has an invalid format.ParseException- If a date string could not be parsed.
-
convertToBinary
public static void convertToBinary(Path in, Path out) throws IOException, ParserConfigurationException, ParseException, SAXException, PropertyListFormatException Converts a given property list file into the OS X and iOS binary format.- Parameters:
in- The source file path.out- The target file path.- Throws:
ParserConfigurationException- If a document builder for parsing an XML property list could not be created. This should not occur.IOException- If any I/O error occurs while reading the input file or writing the output file.SAXException- If any parse error occurs.PropertyListFormatException- If the given property list has an invalid format.ParseException- If a date string could not be parsed.
-
convertToXml
public static void convertToXml(File in, File out) throws ParserConfigurationException, ParseException, SAXException, PropertyListFormatException, IOException Converts a given property list file into the OS X and iOS XML format.- Parameters:
in- The source file.out- The target file. If the file's parent directory does not exist, it will be created.- Throws:
ParserConfigurationException- If a document builder for parsing an XML property list could not be created. This should not occur.IOException- If any I/O error occurs while reading the input file or writing the output file.SAXException- If any parse error occurs.PropertyListFormatException- If the given property list has an invalid format.ParseException- If a date string could not be parsed.
-
convertToXml
public static void convertToXml(Path in, Path out) throws ParserConfigurationException, ParseException, SAXException, PropertyListFormatException, IOException Converts a given property list file into the OS X and iOS XML format.- Parameters:
in- The source file path.out- The target file path.- Throws:
ParserConfigurationException- If a document builder for parsing an XML property list could not be created. This should not occur.IOException- If any I/O error occurs while reading the input file or writing the output file.SAXException- If any parse error occurs.PropertyListFormatException- If the given property list has an invalid format.ParseException- If a date string could not be parsed.
-