TWebFile
class description - source file - inheritance tree
private:
void Init()
public:
TWebFile TWebFile(char* url)
TWebFile TWebFile(TUrl url)
virtual void ~TWebFile()
TClass* Class()
virtual TClass* IsA()
virtual Bool_t IsOpen()
virtual Bool_t ReadBuffer(char* buf, int len)
virtual void Seek(Seek_t offset, TFile::ERelativeTo pos = kBeg)
virtual void ShowMembers(TMemberInspector& insp, char* parent)
virtual void Streamer(TBuffer& b)
private:
TUrl fUrl URL of file
Seek_t fOffset seek offset
TWebFile
A TWebFile is like a normal TFile except that it reads its data
via a (slightly modified) apache web server. A TWebFile is a
read-only file.
TWebFile(const char *url) : TFile(url, "WEB"), fUrl(url)
Create a Web file object. A web file is the same as a read-only
TFile except that it is being read via a HTTP server. The url
argument must be of the form: http://host.dom.ain/file.root.
If the file specified in the URL does not exist or is not accessible
the kZombie bit will be set in the TWebFile object. Use IsZombie()
to see if the file is accessible.
TWebFile(TUrl url) : TFile(url.GetUrl(), "WEB"), fUrl(url)
Create a Web file object. A web file is the same as a read-only
TFile except that it is being read via a HTTP server. Make sure url
is a valid TUrl object.
If the file specified in the URL does not exist or is not accessible
the kZombie bit will be set in the TWebFile object. Use IsZombie()
to see if the file is accessible.
void Init()
Initialize a TWebFile object.
Bool_t IsOpen() const
A TWebFile that has been correctly constructed is always considered open.
Bool_t ReadBuffer(char *buf, int len)
Read specified byte range from remote file via HTTP daemon. This
routine connects to the remote host, sends the request and returns
the buffer. Returns kTRUE in case of error.
void Seek(Seek_t offset, ERelativeTo pos)
Set position from where to start reading.
Inline Functions
TClass* Class()
TClass* IsA()
void ShowMembers(TMemberInspector& insp, char* parent)
void Streamer(TBuffer& b)
void ~TWebFile()
Author: Fons Rademakers 17/01/97
Last update: 2.22/05 04/06/99 18.58.44 by Rene Brun
Copyright (c) 1995-1999, The ROOT System, All rights reserved. *
ROOT page - Class index - Top of the page
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.