Class StreamMetaData

java.lang.Object
de.sfuhrm.radiorecorder.metadata.StreamMetaData

public class StreamMetaData extends Object
The metadata collected from a running stream.
Author:
Stephan Fuhrmann
  • Constructor Details

    • StreamMetaData

      public StreamMetaData()
  • Method Details

    • openStream

      public InputStream openStream(@NonNull @NonNull HttpConnection connection) throws IOException
      Opens the input stream of the http connection. Internally filters the stream and pushes all new metadata objects seen to the registered metadata consumer.
      Parameters:
      connection - the non-null http connection to open the stream for.
      Returns:
      the inputstream that reads data from the source the HttpConnection provides.
      Throws:
      IOException - if a problem occurs while opening the stream.
      See Also:
      • metaDataConsumer