eu.planets_project.services.java_se.image
Class JavaImageIOIdentify

java.lang.Object
  extended by 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

Field Summary
static String NAME
          Service name
 
Fields inherited from interface eu.planets_project.services.identify.Identify
QNAME
 
Constructor Summary
JavaImageIOIdentify()
           
 
Method Summary
 ServiceDescription describe()
          A method that can be used to recover a rich service description, and thus populate a service registry.
 IdentifyResult identify(DigitalObject dob, List<Parameter> parameters)
           
static String sanitize(String format)
          FIXME Comment on sanitization scheme.
static String[] unique(String[] strings)
          Converts all strings in 'strings' to lowercase and returns an array containing the unique values.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NAME

public static final String NAME
Service name

See Also:
Constant Field Values
Constructor Detail

JavaImageIOIdentify

public JavaImageIOIdentify()
Method Detail

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.