summaryrefslogtreecommitdiffstats
path: root/mpeglib/lib/input/fileAccessWrapper.h
blob: d7882abbd0a172ca0a9ad87f52112f3384094e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
/*
  wraps an inputStream for the splayFileBuffer.
  Copyright (C) 2001  Martin Vogt

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU Library General Public License as published by
  the Free Software Foundation.

  For more information look at the file COPYRIGHT in this package

 */


#ifndef __FILEACCESSWRAPPER_H
#define __FILEACCESSWRAPPER_H


#include "../util/file/fileAccess.h"
#include "inputStream.h"

 
class FileAccessWrapper : public FileAccess {

  InputStream* input;

 public:
  FileAccessWrapper(InputStream* input);
  virtual ~FileAccessWrapper();

  int open(const char* file);
  void close();
  int read(char* dest,int len);
  int eof();
  int seek(long pos);
  long getBytePosition();
  long getByteLength();

};


#endif