public class MimeTable extends Object
Constructor and Description |
---|
MimeTable() |
Modifier and Type | Method and Description |
---|---|
String |
getContentType(String documentRef)
Given a file name, returns the mime type.
|
ArrayList<String> |
getPossibleFileExtensions(String documentStandardId)
Given a document standard id, returns a list of possible file extensions associated with that id.
|
boolean |
isMimeTypeCorrect(String documentRef,
String documentStandardId)
Given a document file name, check for the mime type loaded into the hashmap.
|
public String getContentType(String documentRef)
documentRef
- The file name of the documentpublic boolean isMimeTypeCorrect(String documentRef, String documentStandardId)
documentRef
- The file name of the documentdocumentStandardId
- The document standard id as defined by the PDS Information Model document.public ArrayList<String> getPossibleFileExtensions(String documentStandardId)
documentStandardId
- The document standard id as defined by the PDS Information Model document.Copyright © 2022 Jet Propulsion Laboratory, California Institute of Technology. All rights reserved.