public class DataStoreTextWriter extends Object implements TextWriter, Closeable, PreExtractedTextProvider
| Constructor and Description |
|---|
DataStoreTextWriter(File directory,
boolean readOnlyMode) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
ExtractedText |
getText(String propertyPath,
Blob blob)
Get pre extracted text for given blob at given path
|
boolean |
isProcessed(String blobId) |
void |
markEmpty(String blobId) |
void |
markError(String blobId) |
String |
toString() |
void |
write(String blobId,
String text) |
public DataStoreTextWriter(File directory, boolean readOnlyMode) throws IOException
IOExceptionpublic ExtractedText getText(String propertyPath, Blob blob) throws IOException
PreExtractedTextProvidergetText in interface PreExtractedTextProviderpropertyPath - path of the binary propertyblob - binary property valueIOExceptionpublic void write(String blobId, String text) throws IOException
write in interface TextWriterIOExceptionpublic void markEmpty(String blobId)
markEmpty in interface TextWriterpublic void markError(String blobId)
markError in interface TextWriterpublic boolean isProcessed(String blobId)
isProcessed in interface TextWriterpublic void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOException"Copyright © 2010 - 2017 Adobe Systems Incorporated. All Rights Reserved"