I want to convert an OutputStream
into a String
object. I am having an OutputStream
object returned after marshalling the JAXB object.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
Method to handle the XML and convert it to a string.
Method within your class to get the XML and Marshall it Edit The above method will both output the marshalled xml and also the xml as a string.
Yes, there is a way to do it: just pass the String writer as input to it. So that it the xml created will be written to it
not very familiar with jaxb, from what i was able to find you can convert into a string using
ws.apache.org
but I'm not sure about a stirng object. still searching.
** EDIT
found HERE