public static class XmlStreamWriter.Builder extends org.apache.commons.io.build.AbstractStreamBuilder<XmlStreamWriter,XmlStreamWriter.Builder>
XmlStreamWriter instance.
For example:
WriterOutputStream w = WriterOutputStream.builder()
.setPath(path)
.setCharset(StandardCharsets.UTF_8)
.get();
| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
XmlStreamWriter |
get()
Constructs a new instance.
|
getCharset, setBufferSize, setBufferSize, setCharset, setCharset, setOpenOptionssetByteArray, setCharSequence, setFile, setFile, setInputStream, setOutputStream, setPath, setPath, setReader, setURI, setWriterequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasSupplierpublic XmlStreamWriter get() throws java.io.IOException
This builder use the aspect OutputStream, OpenOption[], and Charset.
You must provide an origin that can be converted to an OutputStream by this builder, otherwise, this call will throw an
UnsupportedOperationException.
java.lang.UnsupportedOperationException - if the origin cannot provide an OutputStream.java.io.IOException - if an I/O error occurs.AbstractStreamBuilder.getOutputStream()Copyright © 2010 - 2023 Adobe. All Rights Reserved