3
Copyright (C) 1999 Martin Vogt
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU Library General Public License as published by
7
the Free Software Foundation.
9
For more information look at the file COPYRIGHT in this package
16
#ifndef __INPUTSTREAM_H
17
#define __INPUTSTREAM_H
29
#include "../util/timeStampArray.h"
30
#include "../util/dynBuffer.h"
36
The abstraction for the input stream. In derived classes
37
we implement http,file and cdi access.
49
virtual ~InputStream();
51
virtual int open(const char* dest);
56
virtual int read(char* ptr,int size);
57
virtual int seek(long bytePos);
58
// clears possible input buffers
59
// (called by the decoderPlugin after a resyncCommit)
62
virtual long getByteLength();
63
virtual long getBytePosition();
65
virtual void insertTimeStamp(TimeStamp* src,long key,int len);
66
virtual TimeStamp* getTimeStamp(long key);
67
virtual int bytesUntilNext(long key);
77
class TimeStampArray* timeStampArray;
78
void setUrl(const char* url);