You are here: com.dtsearch.engine Package > Interfaces > DataSource3 Class > DataSource3.setDocStream Method
DataSource3.setDocStream Method
dtSearch Engine API for Java
DataSource3.setDocStream Method
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.

Copyright (c) 1998-2022 dtSearch Corp. All rights reserved.