Package nbbrd.io.xml.bind
Class Jaxb.Formatter<T>
java.lang.Object
nbbrd.io.xml.bind.Jaxb.Formatter<T>
- All Implemented Interfaces:
nbbrd.io.FileFormatter<T>,nbbrd.io.text.TextFormatter<T>,Xml.Formatter<T>
- Enclosing class:
- Jaxb
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidformatFile(@NonNull T value, @NonNull File target) voidformatStream(@NonNull T value, @NonNull OutputStream resource) voidformatStream(@NonNull T value, @NonNull OutputStream resource, @NonNull Charset encoding) voidformatWriter(@NonNull T value, @NonNull Writer resource) @NonNull Charsetstatic <T> @NonNull Jaxb.Formatter<T>static <T> @NonNull Jaxb.Formatter<T>of(@NonNull JAXBContext context) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nbbrd.io.FileFormatter
formatPath, formatStreamMethods inherited from interface nbbrd.io.text.TextFormatter
formatChars, formatFile, formatPath, formatStream, formatToString, formatWriter, withCharsetMethods inherited from interface nbbrd.io.xml.Xml.Formatter
compose, isFormatted
-
Constructor Details
-
Formatter
public Formatter()
-
-
Method Details
-
of
-
of
-
getDefaultEncoding
- Specified by:
getDefaultEncodingin interfaceXml.Formatter<T>
-
formatFile
- Specified by:
formatFilein interfacenbbrd.io.FileFormatter<T>- Throws:
IOException
-
formatWriter
- Specified by:
formatWriterin interfacenbbrd.io.text.TextFormatter<T>- Throws:
IOException
-
formatStream
- Specified by:
formatStreamin interfacenbbrd.io.FileFormatter<T>- Throws:
IOException
-
formatStream
public void formatStream(@NonNull T value, @NonNull OutputStream resource, @NonNull Charset encoding) throws IOException - Specified by:
formatStreamin interfacenbbrd.io.text.TextFormatter<T>- Throws:
IOException
-