public class SimpleDocumentFormatRegistry extends Object implements DocumentFormatRegistry
| Constructor and Description |
|---|
SimpleDocumentFormatRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addFormat(DocumentFormat documentFormat) |
DocumentFormat |
getFormatByExtension(String extension) |
DocumentFormat |
getFormatByMediaType(String mediaType) |
Set<DocumentFormat> |
getOutputFormats(DocumentFamily family) |
public void addFormat(DocumentFormat documentFormat)
public DocumentFormat getFormatByExtension(String extension)
getFormatByExtension in interface DocumentFormatRegistrypublic DocumentFormat getFormatByMediaType(String mediaType)
getFormatByMediaType in interface DocumentFormatRegistrypublic Set<DocumentFormat> getOutputFormats(DocumentFamily family)
getOutputFormats in interface DocumentFormatRegistryCopyright © 2003–2015. All rights reserved.