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, setOpenOptions
setByteArray, setCharSequence, setFile, setFile, setInputStream, setOutputStream, setPath, setPath, setReader, setURI, setWriter
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
asSupplier
public 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