arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | List of all members
MimeSource Class Referenceabstract

Abstract interface for classes that can provide MIME type information. More...

#include <MimeDetector.h>

Inheritance diagram for MimeSource:
AbstractURLStream MimeDetector HLSStreamT< URLStream > ICYStreamT< T > URLStream URLStreamBufferedT< T > URLStreamESP32

Public Member Functions

virtual const char * mime ()=0
 Get the MIME type string.
 

Detailed Description

Abstract interface for classes that can provide MIME type information.

This class defines a simple interface for objects that can determine and provide MIME type strings. It serves as a base class for various MIME detection and source identification implementations within the audio tools framework.

Classes implementing this interface should provide logic to determine the appropriate MIME type based on their specific context (e.g., file content, stream headers, file extensions, etc.).

Note
This is a pure virtual interface class and cannot be instantiated directly.
Author
Phil Schatzmann

Member Function Documentation

◆ mime()

virtual const char * mime ( )
pure virtual

Get the MIME type string.

Pure virtual method that must be implemented by derived classes to return the appropriate MIME type string for the current context.

Returns
const char* Pointer to a null-terminated string containing the MIME type. The string should follow standard MIME type format (e.g., "audio/mpeg"). Returns nullptr if MIME type cannot be determined.
Note
The returned pointer should remain valid for the lifetime of the object or until the next call to this method.

Implemented in MimeDetector, and AbstractURLStream.


The documentation for this class was generated from the following file: