Links
dtSearch Text Retrieval Engine Programmer's Reference 7.70
DInputStreamBase Class
Data Members | Classes | Legend | Members | Methods | DInputStreamBase Constructor | Send Feedback

Base class for implementing an input stream representing a document returned from a data source

Class Hierarchy
class DInputStreamBase;
File

DInputStream.h

Remarks

A dtsInputStream is an abstraction of a document with seek() and read() methods for accessing data and a dtsFileInfo with file description information (modification date, size, etc.) 

A dtsDataSource object returns dtsInputStream objects in response to the getNextDoc callback function. 

Derived classes override seek() and read() to provide access to the data associated with the document. 

The derived class DMemoryInputStream can create a dtsInputStream from data in a memory buffer. 

The derived class DFileInputStream can create a dtsInputStream from a disk file.

Data Members
Data Member 
Description 
String set containing pairs of field names and values to be associated with a document. These field-value pairs are passed to the indexer as dtsInputStream.fields. 
Normally when releaseCB is called, the object is deleted. 
Group
Methods
Method 
Description 
This is the overview for the DInputStreamBase constructor overload. 
Get file properties (filename, modification date, etc.) for an input stream 
Returns the filename associated with the input stream 
read 
Reads data from the input stream 
seek 
Change the seek pointer for the input 
Assign file properties (filename, modification date, etc.) to an input stream 
Assigns a filename to the input stream 
If a document could not be opened, use setOpenFailInfo to report the error code and message. 
tell 
Returns the current position of the seek pointer for the input 
Legend
 
Data Member 
 
protected 
 
Constructor 
 
abstract 
Links
You are here: C++ Support Classes > dtSearch Namespace > Classes > DInputStreamBase Class
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.