Package nbbrd.io.xml
Class Stax.StreamFormatter<T>
java.lang.Object
nbbrd.io.xml.Stax.StreamFormatter<T>
- All Implemented Interfaces:
nbbrd.io.FileFormatter<T>,nbbrd.io.text.TextFormatter<T>,Xml.Formatter<T>
- Enclosing class:
Stax
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidformatFile(T value, @NonNull File target) voidformatStream(T value, @NonNull OutputStream resource) voidformatStream(T value, @NonNull OutputStream resource, @NonNull Charset encoding) voidformatStream(T value, @NonNull nbbrd.io.function.IOSupplier<? extends OutputStream> target) voidformatWriter(T value, @NonNull Writer resource) voidformatWriter(T value, @NonNull nbbrd.io.function.IOSupplier<? extends Writer> target) @NonNull Charsetbooleanstatic <T> @NonNull Stax.StreamFormatter<T> of(@NonNull Stax.OutputHandler2<XMLStreamWriter, T> handler2) static <T> @NonNull Stax.StreamFormatter<T> valueOf(@NonNull Stax.OutputHandler<XMLStreamWriter, T> handler) Deprecated.withHandler(Stax.OutputHandler<XMLStreamWriter, T> handler) Deprecated.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nbbrd.io.FileFormatter
formatPathMethods inherited from interface nbbrd.io.text.TextFormatter
asFileFormatter, asFormatter, asFormatter, formatChars, formatFile, formatPath, formatStream, formatToStringMethods inherited from interface nbbrd.io.xml.Xml.Formatter
compose
-
Constructor Details
-
StreamFormatter
public StreamFormatter()
-
-
Method Details
-
valueOf
@Deprecated @NonNull public static <T> @NonNull Stax.StreamFormatter<T> valueOf(@NonNull @NonNull Stax.OutputHandler<XMLStreamWriter, T> handler) Deprecated. -
of
@NonNull public static <T> @NonNull Stax.StreamFormatter<T> of(@NonNull @NonNull Stax.OutputHandler2<XMLStreamWriter, T> handler2) -
withHandler
@Deprecated public Stax.StreamFormatter<T> withHandler(Stax.OutputHandler<XMLStreamWriter, T> handler) Deprecated. -
isFormatted
public boolean isFormatted()- Specified by:
isFormattedin interfaceXml.Formatter<T>
-
getDefaultEncoding
- Specified by:
getDefaultEncodingin interfaceXml.Formatter<T>
-
formatFile
- Specified by:
formatFilein interfacenbbrd.io.FileFormatter<T>- Throws:
IOException
-
formatWriter
public void formatWriter(@NonNull T value, @NonNull @NonNull nbbrd.io.function.IOSupplier<? extends Writer> target) throws IOException - Specified by:
formatWriterin interfacenbbrd.io.text.TextFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull @NonNull nbbrd.io.function.IOSupplier<? extends OutputStream> target) throws IOException - Specified by:
formatStreamin interfacenbbrd.io.FileFormatter<T>- Throws:
IOException
-
formatWriter
- Specified by:
formatWriterin interfacenbbrd.io.text.TextFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull @NonNull OutputStream resource) throws IOException - Specified by:
formatStreamin interfacenbbrd.io.FileFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull @NonNull OutputStream resource, @NonNull @NonNull Charset encoding) throws IOException - Specified by:
formatStreamin interfacenbbrd.io.text.TextFormatter<T>- Throws:
IOException
-