public class ExtractorHelper extends Object
| Constructor and Description |
|---|
ExtractorHelper() |
public static String createRowseFromFields(String documentID, String collectionID, String idxType, String lang, Map<String,String> fields)
public static String fileContent(String filename) throws IOException
IOExceptionpublic static String covertToString(Collection<String> col)
public static List<String> getFilenames(String path) throws FileNotFoundException
FileNotFoundExceptionpublic static String constructURL(String name, String res_type) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static String constructURL(List<String> names, String res_type) throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static List<ShortenCE4NameResponse> getJsonResponse(String url) throws Exception
Exceptionpublic static List<ShortenCE4NameResponse> parseJsonRequest(String json) throws Exception
Exceptionpublic static String transformList(List<ShortenCE4NameResponse> speciesCE4Name)
public static String transformList(List<ShortenCE4NameResponse> speciesCE4Name, String lang)
public static String transformList(List<ShortenCE4NameResponse> speciesCE4Name, String documentURI, String lang)
public static List<Map<String,String>> transformListToCE4Names(List<ShortenCE4NameResponse> speciesCE4Name)
public static String queryURI(String name, String res_type) throws Exception
Exceptionpublic static String queryListURI(List<String> names, String res_type) throws Exception
Exceptionpublic static String queryCountry(List<String> names) throws Exception
Exceptionpublic static String querySpecies(List<String> names) throws Exception
Exceptionpublic static String querySeasonality(List<String> months) throws Exception
Exceptionpublic static String queryManagement(String management) throws Exception
Exceptionpublic static String queryManagement(List<String> managements) throws Exception
Exceptionpublic static String querySector(List<String> sectors) throws Exception
Exceptionpublic static String queryExploitationStatus(String status) throws Exception
Exceptionpublic static String queryExploitationStatus(List<String> statuses) throws Exception
Exceptionpublic static String queryAccessControl(List<String> accessControls) throws Exception
Exceptionpublic static String queryFishingControl(List<String> fishingControls) throws Exception
Exceptionpublic static String queryEnforcementMethod(List<String> enforcementMethods) throws Exception
ExceptionCopyright © 2014. All Rights Reserved.