java.lang.Object
io.github.mmm.marshall.stax.StaxFormatProvider
- All Implemented Interfaces:
StructuredFormatProvider
,StructuredTextFormatProvider
StructuredFormatProvider
for XML using StAX.- Since:
- 1.0.0
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate()
create
(MarshallingConfig config) getId()
static StructuredTextFormat
of
(XMLInputFactory readerFactory, XMLOutputFactory writerFactory)
-
Constructor Details
-
StaxFormatProvider
public StaxFormatProvider()
-
-
Method Details
-
getId
- Specified by:
getId
in interfaceStructuredFormatProvider
-
create
- Specified by:
create
in interfaceStructuredFormatProvider
- Specified by:
create
in interfaceStructuredTextFormatProvider
-
create
- Specified by:
create
in interfaceStructuredFormatProvider
- Specified by:
create
in interfaceStructuredTextFormatProvider
-
of
public static StructuredTextFormat of(XMLInputFactory readerFactory, XMLOutputFactory writerFactory) - Parameters:
readerFactory
- theXMLInputFactory
.writerFactory
- theXMLOutputFactory
.- Returns:
- a new instance of
StructuredFormat
for "JSON-style" XML based on StAX.
-