Close
dtSearch Engine API for Java
DataSource3.setDocStream Method
Syntax
Java
public void setDocStream(DataSourceStream str);

Use setDocStream to provide the binary contents of this document as an object instead of the byte array expected by setDocBytes. The object must implement seek, read, and getLength methods defined by the DataSourceStream interface. 

A single getNextDoc() call can return data through setDocBytes or setDocStream but not both.