Package nbbrd.io.xml
Class Stax.StreamFormatter<T>
- java.lang.Object
-
- nbbrd.io.xml.Stax.StreamFormatter<T>
-
- All Implemented Interfaces:
FileFormatter<T>,TextFormatter<T>,Xml.Formatter<T>
- Enclosing class:
- Stax
public static final class Stax.StreamFormatter<T> extends Object implements Xml.Formatter<T>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStax.StreamFormatter.Builder<T>
-
Constructor Summary
Constructors Constructor Description StreamFormatter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidformatFile(@NonNull T value, @NonNull File target)voidformatStream(@NonNull T value, @NonNull OutputStream resource)voidformatStream(@NonNull T value, @NonNull OutputStream resource, @NonNull Charset encoding)voidformatStream(@NonNull T value, @NonNull IOSupplier<? extends OutputStream> target)voidformatWriter(@NonNull T value, @NonNull Writer resource)voidformatWriter(@NonNull T value, @NonNull IOSupplier<? extends Writer> target)@NonNull CharsetgetDefaultEncoding()booleanisFormatted()static <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.Stax.StreamFormatter<T>withHandler(Stax.OutputHandler<XMLStreamWriter,T> handler)Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface nbbrd.io.FileFormatter
formatPath
-
Methods inherited from interface nbbrd.io.text.TextFormatter
formatChars, formatFile, formatPath, formatStream, formatToString
-
Methods inherited from interface nbbrd.io.xml.Xml.Formatter
compose
-
-
-
-
Method Detail
-
valueOf
@Deprecated public static <T> @NonNull Stax.StreamFormatter<T> valueOf(@NonNull Stax.OutputHandler<XMLStreamWriter,T> handler)
Deprecated.
-
of
public static <T> @NonNull Stax.StreamFormatter<T> of(@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
public @NonNull Charset getDefaultEncoding()
- Specified by:
getDefaultEncodingin interfaceXml.Formatter<T>
-
formatFile
public void formatFile(@NonNull T value, @NonNull File target) throws IOException
- Specified by:
formatFilein interfaceFileFormatter<T>- Throws:
IOException
-
formatWriter
public void formatWriter(@NonNull T value, @NonNull IOSupplier<? extends Writer> target) throws IOException
- Specified by:
formatWriterin interfaceTextFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull IOSupplier<? extends OutputStream> target) throws IOException
- Specified by:
formatStreamin interfaceFileFormatter<T>- Throws:
IOException
-
formatWriter
public void formatWriter(@NonNull T value, @NonNull Writer resource) throws IOException
- Specified by:
formatWriterin interfaceTextFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull OutputStream resource) throws IOException
- Specified by:
formatStreamin interfaceFileFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull OutputStream resource, @NonNull Charset encoding) throws IOException
- Specified by:
formatStreamin interfaceTextFormatter<T>- Throws:
IOException
-
-