eu.planets_project.services.java_se.image
Class JavaImageIOIdentify
java.lang.Object
eu.planets_project.services.java_se.image.JavaImageIOIdentify
- All Implemented Interfaces:
- Identify, PlanetsService
@MTOM
@StreamingAttachment(parseEagerly=true,
memoryThreshold=10485760L)
public class JavaImageIOIdentify
- extends Object
- implements Identify
- Author:
- Andy Jackson
Fields inherited from interface eu.planets_project.services.identify.Identify |
QNAME |
NAME
public static final String NAME
- Service name
- See Also:
- Constant Field Values
JavaImageIOIdentify
public JavaImageIOIdentify()
describe
public ServiceDescription describe()
- Description copied from interface:
PlanetsService
- A method that can be used to recover a rich service description, and thus
populate a service registry.
- Specified by:
describe
in interface PlanetsService
- Returns:
- A ServiceDescription object that describes this service, to aid
service discovery.
- See Also:
PlanetsService.describe()
identify
public IdentifyResult identify(DigitalObject dob,
List<Parameter> parameters)
- Specified by:
identify
in interface Identify
- Parameters:
dob
- The Digital Object to be identified.
- Returns:
- Returns a Types object containing the identification result
- See Also:
eu.planets_project.services.identify.Identify#identify(eu.planets_project.services.datatypes.DigitalObject)
unique
public static String[] unique(String[] strings)
- Converts all strings in 'strings' to lowercase
and returns an array containing the unique values.
All returned values are lowercase.
Note also that JPEG 2000 gets names 'jpeg2000' and
'jpeg 2000', but not 'jp2', so we map it.
TODO move this to a sub-package .
- Parameters:
strings
-
- Returns:
- unique lower case strings
sanitize
public static String sanitize(String format)
- FIXME Comment on sanitization scheme.
- Parameters:
format
-
- Returns:
Copyright © 2013 Open Planets Foundation. All Rights Reserved.