HTTPInputStream Class Reference
[IO: Local and Remote]

#include <HTTPInputStream.h>

Inheritance diagram for HTTPInputStream:

Inheritance graph
[legend]
Collaboration diagram for HTTPInputStream:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual void Close ()
 Closes the stream if it is not already closed. All system resources used by the stream are released.
virtual std::string GetLocation () const
 HTTPInputStream (const std::string &url)
virtual bool IsDone () const
virtual bool IsOpen () const
virtual char Peek ()
virtual char Read ()
virtual ~HTTPInputStream ()


Detailed Description

handles downloading HTTP URLS

Definition at line 16 of file HTTPInputStream.h.


Constructor & Destructor Documentation

HTTPInputStream::HTTPInputStream ( const std::string &  url  ) 

Definition at line 54 of file HTTPInputStream.cpp.

References Close(), kHTTPRedirect, kHTTPSuccess, and kHTTPUnknown.

HTTPInputStream::~HTTPInputStream (  )  [virtual]

Definition at line 130 of file HTTPInputStream.cpp.

References Close().


Member Function Documentation

void HTTPInputStream::Close (  )  [virtual]

Closes the stream if it is not already closed. All system resources used by the stream are released.

Implements InputStream.

Definition at line 198 of file HTTPInputStream.cpp.

References IsOpen().

Referenced by HTTPInputStream(), and ~HTTPInputStream().

virtual std::string HTTPInputStream::GetLocation (  )  const [inline, virtual]

Returns:
An identifier for the source of this input stream.

Implements InputStream.

Definition at line 27 of file HTTPInputStream.h.

bool HTTPInputStream::IsDone (  )  const [virtual]

Returns:
true if the end of the stream has been reached, and false if there are still more bytes to be read.

Implements InputStream.

Definition at line 140 of file HTTPInputStream.cpp.

Referenced by Peek(), and Read().

bool HTTPInputStream::IsOpen (  )  const [virtual]

Returns:
true if the stream is open, and false if it is closed.

Implements InputStream.

Definition at line 135 of file HTTPInputStream.cpp.

Referenced by Close(), Peek(), and Read().

char HTTPInputStream::Peek (  )  [virtual]

Returns:
The next byte of data from the document without advancing the stream. throws IllegalStateException - If the stream is closed throws IllegalStateException - If the last byte has already been read from the stream throws FileException, NetworkException, IllegalStateException - Implementation Specific

Implements InputStream.

Definition at line 170 of file HTTPInputStream.cpp.

References IsDone(), and IsOpen().

char HTTPInputStream::Read (  )  [virtual]

Returns:
The next byte of data from the document and advances the stream. throws IllegalStateException - If the stream is closed throws IllegalStateException - If the last byte has already been read from the stream throws FileException, NetworkException, IllegalStateException - Implementation Specific

Implements InputStream.

Definition at line 183 of file HTTPInputStream.cpp.

References IsDone(), and IsOpen().


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

Generated on Wed Jul 7 16:30:29 2010 for CS240Utils by  doxygen 1.5.8