Top Description Constructors Methods
com.dd.plist

public final Class PropertyListConverter

extends Object
Class Inheritance
Imports
org.xml.sax.SAXException, javax.xml.parsers.ParserConfigurationException, java.io.File, .IOException, java.nio.file.Path, java.text.ParseException

Converts files between different property list formats.
Author
Daniel Dreibrodt

Constructor Summary

AccessConstructor and Description
private
PropertyListConverter()

Prevents instantiation.

Method Summary

Modifier and TypeMethod and Description
public static void
convertToASCII(File
The source file.
in
,
File
The target file. If the file's parent directory does not exist, it will be created.
out
)

Converts a given property list file into ASCII format.

public static void
convertToASCII(Path
The source file path.
in
,
Path
The target file path.
out
)

Converts a given property list file into ASCII format.

public static void
convertToBinary(File
The source file.
in
,
File
The target file. If the file's parent directory does not exist, it will be created.
out
)

Converts a given property list file into the OS X and iOS binary format.

public static void
convertToBinary(Path
The source file path.
in
,
Path
The target file path.
out
)

Converts a given property list file into the OS X and iOS binary format.

public static void
convertToGnuStepASCII(File
The source file.
in
,
File
The target file. If the file's parent directory does not exist, it will be created.
out
)

Converts a given property list file into ASCII format.

public static void
convertToXml(File
The source file.
in
,
File
The target file. If the file's parent directory does not exist, it will be created.
out
)

Converts a given property list file into the OS X and iOS XML format.

public static void
convertToXml(Path
The source file path.
in
,
Path
The target file path.
out
)

Converts a given property list file into the OS X and iOS XML format.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

PropertyListConverterback to summary
private PropertyListConverter()

Prevents instantiation.

Method Detail

convertToASCIIback to summary
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:File

The source file.

out:File

The target file. If the file's parent directory does not exist, it will be created.

Exceptions
ParserConfigurationException:
If a document builder for parsing an XML property list could not be created. This should not occur.
ParseException:
If a date string could not be parsed.
SAXException:
If any parse error occurs.
PropertyListFormatException:
If the given property list has an invalid format.
IOException:
If any I/O error occurs while reading the input file or writing the output file.
convertToASCIIback to summary
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:Path

The source file path.

out:Path

The target file path.

Exceptions
ParserConfigurationException:
If a document builder for parsing an XML property list could not be created. This should not occur.
ParseException:
If a date string could not be parsed.
SAXException:
If any parse error occurs.
PropertyListFormatException:
If the given property list has an invalid format.
IOException:
If any I/O error occurs while reading the input file or writing the output file.
convertToBinaryback to summary
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:File

The source file.

out:File

The target file. If the file's parent directory does not exist, it will be created.

Exceptions
IOException:
If any I/O error occurs while reading the input file or writing the output file.
ParserConfigurationException:
If a document builder for parsing an XML property list could not be created. This should not occur.
ParseException:
If a date string could not be parsed.
SAXException:
If any parse error occurs.
PropertyListFormatException:
If the given property list has an invalid format.
convertToBinaryback to summary
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:Path

The source file path.

out:Path

The target file path.

Exceptions
IOException:
If any I/O error occurs while reading the input file or writing the output file.
ParserConfigurationException:
If a document builder for parsing an XML property list could not be created. This should not occur.
ParseException:
If a date string could not be parsed.
SAXException:
If any parse error occurs.
PropertyListFormatException:
If the given property list has an invalid format.
convertToGnuStepASCIIback to summary
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:File

The source file.

out:File

The target file. If the file's parent directory does not exist, it will be created.

Exceptions
ParserConfigurationException:
If a document builder for parsing an XML property list could not be created. This should not occur.
ParseException:
If a date string could not be parsed.
SAXException:
If any parse error occurs.
PropertyListFormatException:
If the given property list has an invalid format.
IOException:
If any I/O error occurs while reading the input file or writing the output file.
convertToXmlback to summary
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:File

The source file.

out:File

The target file. If the file's parent directory does not exist, it will be created.

Exceptions
ParserConfigurationException:
If a document builder for parsing an XML property list could not be created. This should not occur.
ParseException:
If a date string could not be parsed.
SAXException:
If any parse error occurs.
PropertyListFormatException:
If the given property list has an invalid format.
IOException:
If any I/O error occurs while reading the input file or writing the output file.
convertToXmlback to summary
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:Path

The source file path.

out:Path

The target file path.

Exceptions
ParserConfigurationException:
If a document builder for parsing an XML property list could not be created. This should not occur.
ParseException:
If a date string could not be parsed.
SAXException:
If any parse error occurs.
PropertyListFormatException:
If the given property list has an invalid format.
IOException:
If any I/O error occurs while reading the input file or writing the output file.