Package nbbrd.io.xml
Class Stax.EventFormatter<T>
java.lang.Object
nbbrd.io.xml.Stax.EventFormatter<T>
- All Implemented Interfaces:
FileFormatter<T>,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 IOSupplier<? extends OutputStream> target) voidformatWriter(T value, @NonNull Writer resource) voidformatWriter(T value, @NonNull IOSupplier<? extends Writer> target) @NonNull Charsetbooleanstatic <T> @NonNull Stax.EventFormatter<T>of(@NonNull Stax.OutputHandler2<XMLEventWriter, T> handler2) static <T> @NonNull Stax.EventFormatter<T>valueOf(@NonNull Stax.OutputHandler<XMLEventWriter, T> handler) Deprecated.withHandler(Stax.OutputHandler<XMLEventWriter, 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
-
EventFormatter
public EventFormatter()
-
-
Method Details
-
valueOf
@Deprecated @NonNull public static <T> @NonNull Stax.EventFormatter<T> valueOf(@NonNull @NonNull Stax.OutputHandler<XMLEventWriter, T> handler) Deprecated. -
of
@NonNull public static <T> @NonNull Stax.EventFormatter<T> of(@NonNull @NonNull Stax.OutputHandler2<XMLEventWriter, T> handler2) -
withHandler
Deprecated. -
isFormatted
public boolean isFormatted()- Specified by:
isFormattedin interfaceXml.Formatter<T>
-
getDefaultEncoding
- Specified by:
getDefaultEncodingin interfaceXml.Formatter<T>
-
formatFile
- Specified by:
formatFilein interfaceFileFormatter<T>- Throws:
IOException
-
formatWriter
public void formatWriter(@NonNull T value, @NonNull @NonNull IOSupplier<? extends Writer> target) throws IOException - Specified by:
formatWriterin interfaceTextFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull @NonNull IOSupplier<? extends OutputStream> target) throws IOException - Specified by:
formatStreamin interfaceFileFormatter<T>- Throws:
IOException
-
formatWriter
- Specified by:
formatWriterin interfaceTextFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull @NonNull OutputStream resource) throws IOException - Specified by:
formatStreamin interfaceFileFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull @NonNull OutputStream resource, @NonNull @NonNull Charset encoding) throws IOException - Specified by:
formatStreamin interfaceTextFormatter<T>- Throws:
IOException
-