public class SearchFacade extends Object
Find and Replace API implementation.
Constructor and Description |
---|
SearchFacade() |
Modifier and Type | Method and Description |
---|---|
static int |
replaceInDocument(InputStream stream,
IReplaceHandler<MetadataProperty> replaceHandler)
Replaces metadata properties in document formats using custom IReplaceHandler.
|
static int |
replaceInDocument(InputStream stream,
String propertyOrPhrase,
String replaceWith,
int searchCondition,
String outputPath)
Replaces metadata properties in document formats.
|
static int |
replaceInDocument(InputStream stream,
String propertyOrPhrase,
String replaceWith,
String outputPath)
Replaces metadata properties in document formats.
|
static int |
replaceInDocument(String path,
IReplaceHandler<MetadataProperty> replaceHandler)
Replaces metadata properties in document formats using custom IReplaceHandler.
|
static int |
replaceInDocument(String path,
String propertyOrPhrase,
String replaceWith,
int searchCondition,
String outputPath)
Replaces metadata properties in document formats.
|
static int |
replaceInDocument(String path,
String propertyOrPhrase,
String replaceWith,
String outputPath)
Replaces metadata properties in document formats.
|
static int |
replaceInExif(InputStream stream,
String propertyOrPhrase,
String replaceWith,
String outputPath)
Replaces EXIF metadata properties.
|
static int |
replaceInExif(String path,
String propertyOrPhrase,
String replaceWith,
String outputPath)
Replaces EXIF metadata properties.
|
static int |
replaceInXmp(InputStream stream,
String propertyOrPhrase,
String replaceWith,
String outputPath)
Replaces XMP metadata properties.
|
static int |
replaceInXmp(String path,
String propertyOrPhrase,
String replaceWith,
String outputPath)
Replaces XMP metadata properties.
|
static MetadataPropertyCollection |
scanDocument(InputStream stream,
String propertyOrPhrase)
Scans properties in document.
|
static MetadataPropertyCollection |
scanDocument(InputStream stream,
String propertyOrPhrase,
int searchCondition)
Scans properties in document.
|
static MetadataPropertyCollection |
scanDocument(String path,
String propertyOrPhrase)
Scans properties in document.
|
static MetadataPropertyCollection |
scanDocument(String path,
String propertyOrPhrase,
int searchCondition)
Scans properties in document.
|
static ExifProperty[] |
scanExif(InputStream stream,
String propertyOrPhrase)
Scans the EXIF metadata.
|
static ExifProperty[] |
scanExif(InputStream stream,
String propertyOrPhrase,
int searchCondition)
Scans the EXIF metadata.
|
static ExifProperty[] |
scanExif(String path,
String propertyOrPhrase)
Scans the EXIF metadata.
|
static ExifProperty[] |
scanExif(String path,
String propertyOrPhrase,
int searchCondition)
Scans the EXIF metadata.
|
static XmpNodeView[] |
scanXmp(InputStream stream,
String propertyOrPhrase)
Scans the XMP metadata.
|
static XmpNodeView[] |
scanXmp(InputStream stream,
String propertyOrPhrase,
int searchCondition)
Scans the XMP metadata.
|
static XmpNodeView[] |
scanXmp(String path,
String propertyOrPhrase)
Scans the XMP metadata.
|
static XmpNodeView[] |
scanXmp(String path,
String propertyOrPhrase,
int searchCondition)
Scans the XMP metadata.
|
public static MetadataPropertyCollection scanDocument(String path, String propertyOrPhrase, int searchCondition)
Scans properties in document. Available for document formats like Word, PDF, PowerPoint and Excel.
path
- Absolute path to the document.propertyOrPhrase
- The property or phrase.searchCondition
- Defines how to search result.MetadataPropertyCollection
.public static MetadataPropertyCollection scanDocument(String path, String propertyOrPhrase)
Scans properties in document. Available for document formats like Word, PDF, PowerPoint and Excel.
path
- Absolute path to the document.propertyOrPhrase
- The property or phrase.MetadataPropertyCollection
.public static MetadataPropertyCollection scanDocument(InputStream stream, String propertyOrPhrase, int searchCondition)
Scans properties in document. Available for document formats like Word, PDF, PowerPoint and Excel.
stream
- Document stream.propertyOrPhrase
- The property or phrase.searchCondition
- Defines how to search result.MetadataPropertyCollection
.public static MetadataPropertyCollection scanDocument(InputStream stream, String propertyOrPhrase)
Scans properties in document. Available for document formats like Word, PDF, PowerPoint and Excel.
stream
- Document stream.propertyOrPhrase
- The property or phrase.MetadataPropertyCollection
.public static XmpNodeView[] scanXmp(String path, String propertyOrPhrase, int searchCondition)
Scans the XMP metadata. Available for image formats.
path
- Absolute path to the file with XMP metadata.propertyOrPhrase
- XMP property name or XMP property value.searchCondition
- Defines how to search result.XmpNodeView
.public static XmpNodeView[] scanXmp(String path, String propertyOrPhrase)
Scans the XMP metadata. Available for image formats.
path
- Absolute path to the file with XMP metadata.propertyOrPhrase
- XMP property name or XMP property value.XmpNodeView
.public static XmpNodeView[] scanXmp(InputStream stream, String propertyOrPhrase, int searchCondition)
Scans the XMP metadata. Available for image formats.
stream
- File stream with XMP metadata.propertyOrPhrase
- XMP property name or XMP property value.searchCondition
- Defines how to search result.XmpNodeView
.public static XmpNodeView[] scanXmp(InputStream stream, String propertyOrPhrase)
Scans the XMP metadata. Available for image formats.
stream
- File stream with XMP metadata.propertyOrPhrase
- XMP property name or XMP property value.XmpNodeView
.public static ExifProperty[] scanExif(String path, String propertyOrPhrase, int searchCondition)
Scans the EXIF metadata. Available for image formats like Jpeg, Tiff.
path
- Path to file with EXIF metadata.propertyOrPhrase
- EXIF property name or EXIF property value.searchCondition
- Defines how to search result.ExifProperty
.public static ExifProperty[] scanExif(String path, String propertyOrPhrase)
Scans the EXIF metadata. Available for image formats like Jpeg, Tiff.
path
- Path to file with EXIF metadata.propertyOrPhrase
- EXIF property name or EXIF property value.ExifProperty
public static ExifProperty[] scanExif(InputStream stream, String propertyOrPhrase, int searchCondition)
Scans the EXIF metadata. Available for image formats like Jpeg, Tiff.
stream
- Stream with EXIF metadata.propertyOrPhrase
- EXIF property name or EXIF property value.searchCondition
- Defines how to search result.ExifProperty
.public static ExifProperty[] scanExif(InputStream stream, String propertyOrPhrase)
Scans the EXIF metadata. Available for image formats like Jpeg, Tiff.
stream
- Stream with EXIF metadata.propertyOrPhrase
- EXIF property name or EXIF property value.ExifProperty
.public static int replaceInDocument(String path, IReplaceHandler<MetadataProperty> replaceHandler)
Replaces metadata properties in document formats using custom IReplaceHandler.
path
- Absolute path to the target file.replaceHandler
- Instance of IReplaceHandler.public static int replaceInDocument(InputStream stream, IReplaceHandler<MetadataProperty> replaceHandler)
Replaces metadata properties in document formats using custom IReplaceHandler.
stream
- Document stream.replaceHandler
- Replace handler.public static int replaceInDocument(String path, String propertyOrPhrase, String replaceWith, int searchCondition, String outputPath)
Replaces metadata properties in document formats.
path
- Absolute path to the target file.propertyOrPhrase
- The property or phrase.replaceWith
- Replacing value.searchCondition
- Search condition.outputPath
- Absolute path to the output path.public static int replaceInDocument(String path, String propertyOrPhrase, String replaceWith, String outputPath)
Replaces metadata properties in document formats.
path
- Absolute path to the target file.propertyOrPhrase
- The property or phrase.replaceWith
- Replacing value.outputPath
- Absolute path to the output path.public static int replaceInDocument(InputStream stream, String propertyOrPhrase, String replaceWith, int searchCondition, String outputPath)
Replaces metadata properties in document formats.
stream
- Document stream.propertyOrPhrase
- The property or phrase.replaceWith
- Replacing value.searchCondition
- Search condition.outputPath
- Absolute path to the output path.public static int replaceInDocument(InputStream stream, String propertyOrPhrase, String replaceWith, String outputPath)
Replaces metadata properties in document formats.
stream
- Document stream.propertyOrPhrase
- The property or phrase.replaceWith
- Replacing value.outputPath
- Absolute path to the output path.public static int replaceInXmp(String path, String propertyOrPhrase, String replaceWith, String outputPath)
Replaces XMP metadata properties.
path
- Absolute path to the target file.propertyOrPhrase
- XMP property name.replaceWith
- The replace with.outputPath
- The output path.public static int replaceInXmp(InputStream stream, String propertyOrPhrase, String replaceWith, String outputPath)
Replaces XMP metadata properties.
stream
- File stream.propertyOrPhrase
- XMP property name.replaceWith
- The replace with.outputPath
- The output path.public static int replaceInExif(String path, String propertyOrPhrase, String replaceWith, String outputPath)
Replaces EXIF metadata properties.
path
- Absolute path to the target file.propertyOrPhrase
- EXIF property name.replaceWith
- The replace with.outputPath
- The output path.public static int replaceInExif(InputStream stream, String propertyOrPhrase, String replaceWith, String outputPath)
Replaces EXIF metadata properties.
stream
- File stream.propertyOrPhrase
- EXIF property name.replaceWith
- The replace with.outputPath
- The output path.Copyright © 2017. All rights reserved.