public final class PropertyListConverter extends Object
Modifier and Type | Method and Description |
---|---|
static void |
convertToASCII(File in,
File out)
Converts a given property list file into ASCII format.
|
static void |
convertToASCII(Path in,
Path out)
Converts a given property list file into ASCII format.
|
static void |
convertToBinary(File in,
File out)
Converts a given property list file into the OS X and iOS binary format.
|
static void |
convertToBinary(Path in,
Path out)
Converts a given property list file into the OS X and iOS binary format.
|
static void |
convertToGnuStepASCII(File in,
File out)
Converts a given property list file into ASCII format.
|
static void |
convertToXml(File in,
File out)
Converts a given property list file into the OS X and iOS XML format.
|
static void |
convertToXml(Path in,
Path out)
Converts a given property list file into the OS X and iOS XML format.
|
public static void convertToASCII(File in, File out) throws ParserConfigurationException, ParseException, SAXException, PropertyListFormatException, IOException
in
- The source file.out
- The target file. If the file's parent directory does not exist, it will be created.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.public static void convertToASCII(Path in, Path out) throws ParserConfigurationException, ParseException, SAXException, PropertyListFormatException, IOException
in
- The source file path.out
- The target file path.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.public static void convertToGnuStepASCII(File in, File out) throws ParserConfigurationException, ParseException, SAXException, PropertyListFormatException, IOException
in
- The source file.out
- The target file. If the file's parent directory does not exist, it will be created.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.public static void convertToBinary(File in, File out) throws IOException, ParserConfigurationException, ParseException, SAXException, PropertyListFormatException
in
- The source file.out
- The target file. If the file's parent directory does not exist, it will be created.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.public static void convertToBinary(Path in, Path out) throws IOException, ParserConfigurationException, ParseException, SAXException, PropertyListFormatException
in
- The source file path.out
- The target file path.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.public static void convertToXml(File in, File out) throws ParserConfigurationException, ParseException, SAXException, PropertyListFormatException, IOException
in
- The source file.out
- The target file. If the file's parent directory does not exist, it will be created.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.public static void convertToXml(Path in, Path out) throws ParserConfigurationException, ParseException, SAXException, PropertyListFormatException, IOException
in
- The source file path.out
- The target file path.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.Copyright © 2024. All rights reserved.