public class DocumentInfo extends Object
Represents a descriptor for an indexed document.
Learn more
Modifier | Constructor and Description |
---|---|
protected |
DocumentInfo(String filePath,
FileType fileType,
String[] innerPathParts,
int[] partIds,
int documentSourceKind)
Initializes a new instance of the
DocumentInfo class. |
Modifier and Type | Method and Description |
---|---|
protected static DocumentInfo |
create(String filePath,
FileType fileType,
String[] innerPathParts,
int[] partIds,
int documentSourceKind) |
protected static int |
getDocumentSourceKind(DocumentInfo info) |
String |
getFilePath()
Gets the file path.
|
FileType |
getFileType()
Gets the file type.
|
FormatFamily |
getFormatFamily()
Gets the document format family.
|
String |
getInnerPath()
Gets the inner path for container document item.
|
protected static String[] |
getInnerPathParts(DocumentInfo info) |
protected static int[] |
getPartIds(DocumentInfo info) |
protected static FoundDocument |
toFoundDocument(DocumentInfo info) |
String |
toString()
Returns a
System.String that represents the current DocumentInfo . |
protected DocumentInfo(String filePath, FileType fileType, String[] innerPathParts, int[] partIds, int documentSourceKind)
Initializes a new instance of the DocumentInfo
class.
filePath
- The file path.fileType
- The file typeinnerPathParts
- The path parts.partIds
- The part IDs.documentSourceKind
- The document source kind.protected static DocumentInfo create(String filePath, FileType fileType, String[] innerPathParts, int[] partIds, int documentSourceKind)
public String toString()
Returns a System.String
that represents the current DocumentInfo
.
public final String getFilePath()
Gets the file path.
public final FileType getFileType()
Gets the file type.
public final FormatFamily getFormatFamily()
Gets the document format family.
public final String getInnerPath()
Gets the inner path for container document item.
protected static final String[] getInnerPathParts(DocumentInfo info)
protected static final int[] getPartIds(DocumentInfo info)
protected static final int getDocumentSourceKind(DocumentInfo info)
protected static final FoundDocument toFoundDocument(DocumentInfo info)