Class XmlReceiver

java.lang.Object
lt.viko.eif.jguscia.services.XmlReceiver

public class XmlReceiver extends Object
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 Details

    • XmlReceiver

      public XmlReceiver()
  • Method Details

    • receive

      public String receive(InputStream inputStream) throws IOException
      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