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

Input stream representing a document stored in memory.

Class Hierarchy
class DMemoryInputStream : public DInputStreamBase;
File

DInputStream.h

Remarks

Input streams are used in the dtsDataSource API. 

The contents of the input stream can be plain text or binary data. Binary data is parsed in the dtSearch Engine exactly as if it were a disk file, so a memory input stream can be used with binary file formats such as Microsoft Word documents, PDF files, etc.

See Also
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 
DMemoryInputStream Class
Method 
Description 
Allocate a new DMemoryInputStream with its own copy of the data in this one. 
This is the overview for the DMemoryInputStream constructor overload. 
Returns a pointer to the start of the buffer DMemoryInputStream uses to store data 
Returns the size of the buffer DMemoryInputStream uses to store data 
Returns the size of the data stored in this stream 
read 
Reads data from the input stream 
seek 
Change the seek pointer for the input 
Set binary data, such as the contents of a Microsoft Word document or a PDF file, as the contents of this document. 
Store plain text as the contents of this document 
tell 
Returns the current position of the seek pointer for the input 
Legend
 
Data Member 
 
protected 
 
Constructor 
 
abstract 
 
virtual 
Links
You are here: C++ Support Classes > dtSearch Namespace > Classes > DMemoryInputStream Class
Copyright (c) 1995-2012 dtSearch Corp. All rights reserved.