Class PListWriter
java.lang.Object
jdk.jpackage.internal.util.PListWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
writeArray
(XMLStreamWriter xml, XmlConsumer content) static void
writeBoolean
(XMLStreamWriter xml, String key, boolean value) static void
writeBooleanOptional
(XMLStreamWriter xml, String key, Optional<Boolean> value) static void
writeDict
(XMLStreamWriter xml, XmlConsumer content) static void
writeKey
(XMLStreamWriter xml, String key) static void
writePList
(XMLStreamWriter xml, XmlConsumer content) static void
writeString
(XMLStreamWriter xml, String key, Object value) static void
writeStringArray
(XMLStreamWriter xml, String key, Object... values) static void
writeStringArray
(XMLStreamWriter xml, String key, Collection<?> values) static void
writeStringOptional
(XMLStreamWriter xml, String key, Optional<?> value)
-
Constructor Details
-
PListWriter
public PListWriter()
-
-
Method Details
-
writeBoolean
public static void writeBoolean(XMLStreamWriter xml, String key, boolean value) throws XMLStreamException - Throws:
XMLStreamException
-
writeBooleanOptional
public static void writeBooleanOptional(XMLStreamWriter xml, String key, Optional<Boolean> value) throws XMLStreamException - Throws:
XMLStreamException
-
writeString
public static void writeString(XMLStreamWriter xml, String key, Object value) throws XMLStreamException - Throws:
XMLStreamException
-
writeStringOptional
public static void writeStringOptional(XMLStreamWriter xml, String key, Optional<?> value) throws XMLStreamException - Throws:
XMLStreamException
-
writeStringArray
public static void writeStringArray(XMLStreamWriter xml, String key, Collection<?> values) throws XMLStreamException, IOException - Throws:
XMLStreamException
IOException
-
writeStringArray
public static void writeStringArray(XMLStreamWriter xml, String key, Object... values) throws XMLStreamException, IOException - Throws:
XMLStreamException
IOException
-
writeDict
public static void writeDict(XMLStreamWriter xml, XmlConsumer content) throws XMLStreamException, IOException - Throws:
XMLStreamException
IOException
-
writeArray
public static void writeArray(XMLStreamWriter xml, XmlConsumer content) throws XMLStreamException, IOException - Throws:
XMLStreamException
IOException
-
writePList
public static void writePList(XMLStreamWriter xml, XmlConsumer content) throws XMLStreamException, IOException - Throws:
XMLStreamException
IOException
-
writeKey
- Throws:
XMLStreamException
-