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
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate()create(MarshallingConfig config) getId()static StructuredTextFormatof(XMLInputFactory readerFactory, XMLOutputFactory writerFactory)
-
Constructor Details
-
StaxFormatProvider
public StaxFormatProvider()
-
-
Method Details
-
getId
- Specified by:
getIdin interfaceStructuredFormatProvider
-
create
- Specified by:
createin interfaceStructuredFormatProvider- Specified by:
createin interfaceStructuredTextFormatProvider
-
create
- Specified by:
createin interfaceStructuredFormatProvider- Specified by:
createin interfaceStructuredTextFormatProvider
-
of
public static StructuredTextFormat of(XMLInputFactory readerFactory, XMLOutputFactory writerFactory) - Parameters:
readerFactory- theXMLInputFactory.writerFactory- theXMLOutputFactory.- Returns:
- a new instance of
StructuredFormatfor "JSON-style" XML based on StAX.
-