Class XmlReceiver
java.lang.Object
lt.viko.eif.jguscia.services.XmlReceiver
Service responsible for receiving XML data from an input stream.
The stream content is read and converted into a UTF-8 encoded string which can then be processed by other components of the application.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionreceive(InputStream inputStream) Reads all data from the provided input stream and converts it to a string.
-
Constructor Details
-
XmlReceiver
public XmlReceiver()
-
-
Method Details
-
receive
Reads all data from the provided input stream and converts it to a string.- Parameters:
inputStream- input stream containing XML data- Returns:
- XML content as a UTF-8 encoded string
- Throws:
IOException- if an error occurs while reading the stream
-