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,
Pattern pattern,
String replaceWith,
String outputPath)
Replaces metadata properties in document formats.
|
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,
Pattern pattern,
String replaceWith,
String outputPath)
Replaces metadata properties in document formats.
|
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,
Pattern pattern,
String replaceWith,
String outputPath)
Replaces EXIF metadata properties.
|
static int |
replaceInExif(InputStream stream,
String propertyOrPhrase,
String replaceWith,
String outputPath)
Replaces EXIF metadata properties.
|
static int |
replaceInExif(String path,
Pattern pattern,
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,
Pattern pattern,
String replaceWith,
String outputPath)
Replaces XMP metadata properties.
|
static int |
replaceInXmp(InputStream stream,
String propertyOrPhrase,
String replaceWith,
String outputPath)
Replaces XMP metadata properties.
|
static int |
replaceInXmp(String path,
Pattern pattern,
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,
Pattern pattern)
Scans properties in document.
|
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,
Pattern pattern)
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 TiffTag[] |
scanExifTags(InputStream stream,
Pattern pattern)
Scans the EXIF metadata.
|
static TiffTag[] |
scanExifTags(InputStream stream,
String propertyOrPhrase)
Scans the EXIF metadata.
|
static TiffTag[] |
scanExifTags(InputStream stream,
String propertyOrPhrase,
int searchCondition)
Scans the EXIF metadata.
|
static TiffTag[] |
scanExifTags(String path,
Pattern pattern)
Scans the EXIF metadata.
|
static TiffTag[] |
scanExifTags(String path,
String propertyOrPhrase)
Scans the EXIF metadata.
|
static TiffTag[] |
scanExifTags(String path,
String propertyOrPhrase,
int searchCondition)
Scans the EXIF metadata.
|
static XmpNodeView[] |
scanXmp(InputStream stream,
Pattern pattern)
Scans the XMP 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,
Pattern pattern)
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(String path, Pattern pattern)
Scans properties in document. Available for document formats like Word, PDF, PowerPoint and Excel.
path
- Absolute path to the document.pattern
- The regular expression pattern to match to.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 MetadataPropertyCollection scanDocument(InputStream stream, Pattern pattern)
Scans properties in document. Available for document formats like Word, PDF, PowerPoint and Excel.
stream
- Document stream.pattern
- The regular expression pattern to match to.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(String path, Pattern pattern)
Scans the XMP metadata. Available for image formats.
path
- Absolute path to the file with XMP metadata.pattern
- The regular expression pattern to match to.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 XmpNodeView[] scanXmp(InputStream stream, Pattern pattern)
Scans the XMP metadata. Available for image formats.
stream
- File stream with XMP metadata.pattern
- The regular expression pattern to match to.XmpNodeView
.public static TiffTag[] scanExifTags(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.TiffTag
.public static TiffTag[] scanExifTags(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.TiffTag
public static TiffTag[] scanExifTags(String path, Pattern pattern)
Scans the EXIF metadata. Available for image formats like Jpeg, Tiff.
path
- Path to file with EXIF metadata.pattern
- The regular expression pattern to match to.TiffTag
public static TiffTag[] scanExifTags(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.TiffTag
.public static TiffTag[] scanExifTags(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.TiffTag
.public static TiffTag[] scanExifTags(InputStream stream, Pattern pattern)
Scans the EXIF metadata. Available for image formats like Jpeg, Tiff.
stream
- Stream with EXIF metadata.pattern
- The regular expression pattern to match to.TiffTag
.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 file.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 file.public static int replaceInDocument(String path, Pattern pattern, String replaceWith, String outputPath)
Replaces metadata properties in document formats.
path
- Absolute path to the target file.pattern
- The regular expression pattern to match to.replaceWith
- Replacing value.outputPath
- Absolute path to the output file.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 file.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 file.public static int replaceInDocument(InputStream stream, Pattern pattern, String replaceWith, String outputPath)
Replaces metadata properties in document formats.
stream
- Document stream.pattern
- The regular expression pattern to match to.replaceWith
- Replacing value.outputPath
- Absolute path to the output file.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(String path, Pattern pattern, String replaceWith, String outputPath)
Replaces XMP metadata properties.
path
- Absolute path to the target file.pattern
- The regular expression pattern to match to.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 replaceInXmp(InputStream stream, Pattern pattern, String replaceWith, String outputPath)
Replaces XMP metadata properties.
stream
- File stream.pattern
- The regular expression pattern to match to.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(String path, Pattern pattern, String replaceWith, String outputPath)
Replaces EXIF metadata properties.
path
- Absolute path to the target file.pattern
- The regular expression pattern to match to.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.public static int replaceInExif(InputStream stream, Pattern pattern, String replaceWith, String outputPath)
Replaces EXIF metadata properties.
stream
- File stream.pattern
- The regular expression pattern to match to.replaceWith
- The replace with.outputPath
- The output path.Copyright © 2019. All rights reserved.