14 #ifndef DISABLE_STREAM_PLAYER // [ 16 #ifndef _StreamFileDataSource_h_ 17 #define _StreamFileDataSource_h_ 23 #include "os/OsDefs.h" 24 #include "os/OsStatus.h" 26 #include "os/OsMutex.h" 59 virtual OsStatus
open() ;
62 virtual OsStatus
close() ;
68 virtual OsStatus
read(
char *szBuffer,
int iLength,
int& iLengthRead) ;
76 virtual OsStatus
peek(
char* szBuffer,
int iLength,
int& iLengthRead) ;
83 virtual OsStatus
seek(
unsigned int iLocation) ;
94 virtual OsStatus
getLength(
int& iLength) ;
100 virtual OsStatus
toString(UtlString&
string) ;
132 #endif // _StreamFileDataSource_h_ 134 #endif // DISABLE_STREAM_PLAYER ] virtual OsStatus destroyAndDelete()
Destroys and deletes the data source object.
Definition: StreamFileDataSource.cpp:106
virtual OsStatus read(char *szBuffer, int iLength, int &iLengthRead)
Definition: StreamFileDataSource.cpp:118
StreamFileDataSource(Url url, int iFlags)
Definition: StreamFileDataSource.cpp:30
An abstraction definition of a stream data source.
Definition: StreamDataSource.h:47
Definition: StreamFileDataSource.h:38
virtual OsStatus peek(char *szBuffer, int iLength, int &iLengthRead)
Definition: StreamFileDataSource.cpp:139
virtual OsStatus getPosition(int &iPosition)
Gets the current position within the stream.
Definition: StreamFileDataSource.cpp:200
virtual OsStatus seek(unsigned int iLocation)
Definition: StreamFileDataSource.cpp:164
OsMutex mFileGuard
Definition: StreamFileDataSource.h:127
virtual OsStatus getLength(int &iLength)
Gets the length of the stream (if available)
Definition: StreamFileDataSource.cpp:185
virtual ~StreamFileDataSource()
Definition: StreamFileDataSource.cpp:39
virtual OsStatus open()
Opens the data source.
Definition: StreamFileDataSource.cpp:53
StreamFileDataSource & operator=(const StreamFileDataSource &rhs)
Definition: StreamFileDataSource.cpp:242
Url mUrl
Definition: StreamFileDataSource.h:124
virtual OsStatus toString(UtlString &string)
Renders a string describing this data source.
Definition: StreamFileDataSource.cpp:218
virtual OsStatus close()
Closes the data source.
Definition: StreamFileDataSource.cpp:90
OsFile * mpFile
Definition: StreamFileDataSource.h:125