Package de.sfuhrm.radiorecorder.consumer
Class MetaDataConsumer
java.lang.Object
de.sfuhrm.radiorecorder.consumer.AbstractConsumer
de.sfuhrm.radiorecorder.consumer.MetaDataConsumer
- All Implemented Interfaces:
Consumer<HttpConnection>
- Direct Known Subclasses:
StreamCastConsumer,StreamCopyConsumer,StreamPlayConsumer
Opens a stream and intercepts possible metadata information.
Subclasses need to implement
__accept(de.sfuhrm.radiorecorder.http.HttpConnection, java.io.InputStream).- Author:
- Stephan Fuhrmann
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void__accept(HttpConnection t, InputStream inputStream) The accept method to overwrite by implementing classes.protected final voidThe inner accept implementation.Methods inherited from class de.sfuhrm.radiorecorder.consumer.AbstractConsumer
accept
-
Constructor Details
-
MetaDataConsumer
Constructor.- Parameters:
consumerContext- the context to work in.
-
-
Method Details
-
_accept
Description copied from class:AbstractConsumerThe inner accept implementation. Will get called after applying configuration to the HttpConnection passed in.- Specified by:
_acceptin classAbstractConsumer- Parameters:
t- the connection to process.
-
__accept
The accept method to overwrite by implementing classes.- Parameters:
t- the http connection being processed.inputStream- the input stream that is processed.
-