public class DimapProductReaderPlugIn extends Object implements ProductReaderPlugIn
DimapProductReaderPlugIn
class is an implementation of the ProductReaderPlugIn
interface exclusively for data products having the BEAM-DIMAP product format.
XMLDecoder plug-ins are used to provide meta-information about a particular data format and to create instances of the actual reader objects.
The BEAM-DIMAP version history is provided in the API doc of the DimapProductWriterPlugIn
.
DimapProductReader
Constructor and Description |
---|
DimapProductReaderPlugIn()
Constructs a new BEAM-DIMAP product reader plug-in instance.
|
Modifier and Type | Method and Description |
---|---|
void |
addReaderExtender(DimapProductReader.ReaderExtender extender) |
ProductReader |
createReaderInstance()
Creates an instance of the actual BEAM-DIMAP product reader class.
|
DecodeQualification |
getDecodeQualification(Object object)
Checks whether the given object is an acceptable input for this product reader and if so, the method checks if
it's content has the BEAM-DIMAP format.
|
String[] |
getDefaultFileExtensions()
Gets the default file extensions associated with each of the format names returned by the
method. |
String |
getDescription(Locale name)
Gets a short description of this plug-in.
|
String[] |
getFormatNames()
Returns a string array containing the single entry
"BEAM-DIMAP" . |
Class[] |
getInputTypes()
Returns an array containing the classes that represent valid input types for an BEAM-DIMAP product reader.
|
SnapFileFilter |
getProductFileFilter()
Gets an instance of
SnapFileFilter for use in a JFileChooser . |
void |
removeReaderExtender(DimapProductReader.ReaderExtender extender) |
public DimapProductReaderPlugIn()
public String[] getFormatNames()
"BEAM-DIMAP"
.getFormatNames
in interface ProductIOPlugIn
null
public String[] getDefaultFileExtensions()
getFormatNames()
method. The string array returned shall always have the same length as the array
returned by the
method. getFormatNames()
The extensions returned in the string array shall
always include a leading colon ('.') character, e.g. ".hdf"
getDefaultFileExtensions
in interface ProductIOPlugIn
null
public String getDescription(Locale name)
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)
BEAM-DIMAP product readers accept java.lang.String
- a file path or a java.io.File
- an abstract file path.
getDecodeQualification
in interface ProductReaderPlugIn
object
- the input objecttrue
if the given input is an object referencing a physical BEAM-DIMAP data source.public Class[] getInputTypes()
Instances of the classes returned in this array are valid objects for the setInput
method of the
DimapProductReader
class (the method will not throw an InvalidArgumentException
in this
case).
getInputTypes
in interface ProductReaderPlugIn
null
public ProductReader createReaderInstance()
createReaderInstance
in interface ProductReaderPlugIn
DimapProductReader
classpublic SnapFileFilter getProductFileFilter()
ProductIOPlugIn
SnapFileFilter
for use in a JFileChooser
.getProductFileFilter
in interface ProductIOPlugIn
null
if this plugin doesn't support file filterpublic void addReaderExtender(DimapProductReader.ReaderExtender extender)
public void removeReaderExtender(DimapProductReader.ReaderExtender extender)
Copyright © 2014–2017 European Space Agency (ESA). All rights reserved.