Class PListWriter
java.lang.Object
jdk.jpackage.internal.util.PListWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidwriteArray(XMLStreamWriter xml, XmlConsumer content) static voidwriteBoolean(XMLStreamWriter xml, String key, boolean value) static voidwriteBooleanOptional(XMLStreamWriter xml, String key, Optional<Boolean> value) static voidwriteDict(XMLStreamWriter xml, XmlConsumer content) static voidwriteKey(XMLStreamWriter xml, String key) static voidwritePList(XMLStreamWriter xml, XmlConsumer content) static voidwriteString(XMLStreamWriter xml, String key, Object value) static voidwriteStringArray(XMLStreamWriter xml, String key, Object... values) static voidwriteStringArray(XMLStreamWriter xml, String key, Collection<?> values) static voidwriteStringOptional(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:
XMLStreamExceptionIOException
-
writeStringArray
public static void writeStringArray(XMLStreamWriter xml, String key, Object... values) throws XMLStreamException, IOException - Throws:
XMLStreamExceptionIOException
-
writeDict
public static void writeDict(XMLStreamWriter xml, XmlConsumer content) throws XMLStreamException, IOException - Throws:
XMLStreamExceptionIOException
-
writeArray
public static void writeArray(XMLStreamWriter xml, XmlConsumer content) throws XMLStreamException, IOException - Throws:
XMLStreamExceptionIOException
-
writePList
public static void writePList(XMLStreamWriter xml, XmlConsumer content) throws XMLStreamException, IOException - Throws:
XMLStreamExceptionIOException
-
writeKey
- Throws:
XMLStreamException
-