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()
           
 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
clone, equals, finalize, 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()
Specified by:
describe in interface PlanetsService
See Also:
PlanetsService.describe()

identify

public IdentifyResult identify(DigitalObject dob,
                               List<Parameter> parameters)
Specified by:
identify in interface Identify
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 © 2011 Open Planets Foundation. All Rights Reserved.