public class ObjectFormatServiceImpl extends Object
| Modifier and Type | Field and Description |
|---|---|
protected ObjectFormatList |
objectFormatList |
protected HashMap<ObjectFormatIdentifier,ObjectFormat> |
objectFormatMap |
| Modifier | Constructor and Description |
|---|---|
protected |
ObjectFormatServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ObjectFormat |
getFormat(ObjectFormatIdentifier formatId)
Get the object format based on the given identifier.
|
static ObjectFormatServiceImpl |
getInstance()
Get the instance of the ObjectFormatServiceImpl that has been instantiated,
or instantiate one if it has not been already.
|
InputStream |
getObjectFormatFile()
Convenience method to retrieve the default format list as a stream
|
protected HashMap<ObjectFormatIdentifier,ObjectFormat> |
getObjectFormatMap()
Return the hash containing the formatId and format mapping
|
ObjectFormatList |
listFormats()
List the object formats registered with the object format service.
|
protected ObjectFormatList objectFormatList
protected HashMap<ObjectFormatIdentifier,ObjectFormat> objectFormatMap
protected ObjectFormatServiceImpl()
throws ServiceFailure
ServiceFailurepublic static ObjectFormatServiceImpl getInstance() throws ServiceFailure
ServiceFailurepublic ObjectFormatList listFormats()
public ObjectFormat getFormat(ObjectFormatIdentifier formatId) throws NotFound, ServiceFailure, NotImplemented
formatId - - the object format identifierNotFoundNotImplemented - - not thrown by this base class, in signature to allow subclasses to overrideServiceFailure - - not thrown by this base class, in signature to allow subclasses to overridepublic InputStream getObjectFormatFile()
protected HashMap<ObjectFormatIdentifier,ObjectFormat> getObjectFormatMap()
Copyright © 2014. All Rights Reserved.