Add doc & tests to Jaxb2XmlEncoder for collections

Issue: SPR-16363
This commit is contained in:
Sebastien Deleuze
2018-08-08 17:04:25 +02:00
parent a06e63f619
commit 1c628293a2
2 changed files with 87 additions and 6 deletions

View File

@@ -40,7 +40,11 @@ import org.springframework.util.MimeType;
import org.springframework.util.MimeTypeUtils;
/**
* Encode from {@code Object} stream to a byte stream containing XML elements.
* Encode from single value to a byte stream containing XML elements.
*
* <p>{@link javax.xml.bind.annotation.XmlElements @XmlElements} and
* {@link javax.xml.bind.annotation.XmlElement @XmlElement} can be used to specify how
* collections should be marshalled.
*
* @author Sebastien Deleuze
* @author Arjen Poutsma