public class JavaSearchDocument extends SearchDocument
| Modifier and Type | Field and Description |
|---|---|
protected byte[] |
byteContents |
protected char[] |
charContents |
| Constructor and Description |
|---|
JavaSearchDocument(java.lang.String documentPath,
SearchParticipant participant) |
JavaSearchDocument(java.util.zip.ZipEntry zipEntry,
IPath zipFilePath,
byte[] contents,
SearchParticipant participant) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
getByteContents()
Returns the contents of this document.
|
char[] |
getCharContents()
Returns the contents of this document.
|
java.lang.String |
getEncoding()
Returns the encoding for this document.
|
java.lang.String |
toString() |
addIndexEntry, getParser, getParticipant, getPath, removeAllIndexEntries, requireIndexingResolvedDocument, setIndex, setParser, shouldIndexResolvedDocumentpublic JavaSearchDocument(java.lang.String documentPath,
SearchParticipant participant)
public JavaSearchDocument(java.util.zip.ZipEntry zipEntry,
IPath zipFilePath,
byte[] contents,
SearchParticipant participant)
public byte[] getByteContents()
SearchDocumentThis method must be implemented in subclasses.
Note: some implementation may choose to cache the contents directly on the document for performance reason. However, this could induce scalability issues due to the fact that collections of documents are manipulated throughout the search operation, and cached contents would then consume lots of memory until they are all released at once in the end.
getByteContents in class SearchDocumentnull if nonepublic char[] getCharContents()
SearchDocumentThis method must be implemented in subclasses.
Note: some implementation may choose to cache the contents directly on the document for performance reason. However, this could induce scalability issues due to the fact that collections of documents are manipulated throughout the search operation, and cached contents would then consume lots of memory until they are all released at once in the end.
getCharContents in class SearchDocumentnull if nonepublic java.lang.String getEncoding()
SearchDocumentThis method must be implemented in subclasses.
getEncoding in class SearchDocumentnull if nonepublic java.lang.String toString()
toString in class java.lang.Object