public class AlwaysReject extends ImageMetadataReader
ImageMetadataReader
that will always throw an exception and reject a file.
This can be useful for debugging errors, to identify circumstances in which a ImageMetadataReader
is used or not used.
Constructor and Description |
---|
AlwaysReject() |
Modifier and Type | Method and Description |
---|---|
ImageMetadata |
openFile(Path path,
StackReader defaultStackReader,
OperationContext context)
Opens a file containing one or more images but does not read an image.
|
checkMisconfigured, describeBean, describeChildren, duplicateBean, fields, findFieldsOfClass, getBeanName, getLocalPath, localise, toString
public ImageMetadata openFile(Path path, StackReader defaultStackReader, OperationContext context) throws ImageIOException
ImageMetadataReader
openFile
in class ImageMetadataReader
path
- where the file is located.defaultStackReader
- the default StackReader
to use, if needed, and if not
otherwise specified, for reading metadata.context
- context for reading a stack from the file-system.ImageIOException
- if the file cannot be read.Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.