public class ImageProductReaderPlugIn extends Object implements ProductReaderPlugIn
Modifier and Type | Field and Description |
---|---|
static String |
FORMAT_NAME |
Constructor and Description |
---|
ImageProductReaderPlugIn() |
Modifier and Type | Method and Description |
---|---|
ProductReader |
createReaderInstance()
Creates an instance of the actual product reader class.
|
DecodeQualification |
getDecodeQualification(Object object)
Gets the qualification of the product reader to decode a given input object.
|
String[] |
getDefaultFileExtensions()
Gets the default file extensions associated with each of the format names returned
by the
ProductIOPlugIn.getFormatNames() method. |
String |
getDescription(Locale name)
Gets a short description of this plug-in.
|
String[] |
getFormatNames()
Gets the names of the product formats handled by this product I/O plug-in.
|
Class[] |
getInputTypes()
Returns an array containing the classes that represent valid input types for this reader.
|
SnapFileFilter |
getProductFileFilter()
Gets an instance of
SnapFileFilter for use in a JFileChooser . |
public static final String FORMAT_NAME
public String[] getFormatNames()
ProductIOPlugIn
getFormatNames
in interface ProductIOPlugIn
null
public String[] getDefaultFileExtensions()
ProductIOPlugIn
ProductIOPlugIn.getFormatNames()
method. The string array returned
shall have the same length as the array returned by the
ProductIOPlugIn.getFormatNames()
method.
The extensions returned in the
string array also shall always include a leading colon ('.') character,
e.g. ".hdf"
. If there is no default files extensions an empty array can
be returned.
getDefaultFileExtensions
in interface ProductIOPlugIn
null
public String getDescription(Locale name)
ProductIOPlugIn
null
the default locale is
used.
In a GUI, the description returned could be used as tool-tip text.
getDescription
in interface ProductIOPlugIn
name
- the local for the given description string, if null
the default locale is usedpublic DecodeQualification getDecodeQualification(Object object)
ProductReaderPlugIn
getDecodeQualification
in interface ProductReaderPlugIn
object
- the input objectpublic Class[] getInputTypes()
ProductReaderPlugIn
Instances of the classes returned in this array are valid objects for the setInput
method of the
ProductReader
interface (the method will not throw an InvalidArgumentException
in this
case).
getInputTypes
in interface ProductReaderPlugIn
null
public ProductReader createReaderInstance()
ProductReaderPlugIn
null
.createReaderInstance
in interface ProductReaderPlugIn
null
public SnapFileFilter getProductFileFilter()
ProductIOPlugIn
SnapFileFilter
for use in a JFileChooser
.getProductFileFilter
in interface ProductIOPlugIn
null
if this plugin doesn't support file filterCopyright © 2014–2017 European Space Agency (ESA). All rights reserved.