public class ImportTools extends Object
| Constructor and Description |
|---|
ImportTools() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanCSVFile(File csvFile,
String fromDelimiter,
String toDelimiter,
List<String> columnTypes,
String decimalSep,
String thousandsSep,
String optLongitudeName,
String optLatitudeName,
String keepRowColumnName,
String keepRowColumnValue)
Do some cleaning operations on a csv file, using CSVReader.
|
static File |
getFreshCSVFile(javax.servlet.ServletContext ctx,
String workspace,
String remoteCSVUrl,
String fromDelimiter,
String toDelimiter,
List<String> columnTypes,
String decimalSep,
String thousandsSep,
String optLongitudeName,
String optLatitudeName,
boolean approved,
String keepRowColumnName,
String keepRowColumnValue)
Retrieve a file from a remote server
|
static void |
importCsvFile(javax.servlet.ServletContext ctx,
String workspace,
String fileName,
String layerTitle,
String optColumnTypes)
Import file that exists on the server.
|
static void |
importRemoteFile(javax.servlet.ServletContext ctx,
String layerTitle,
String optColumnTypes,
String workspace,
String remoteCSVUrl,
String usedCSVDelimiter,
String decimalSep,
String thousandsSep,
String optLongitudeName,
String optLatitudeName,
boolean approved,
String keepRowColumnName,
String keepRowColumnValue)
Import file from a remote http(s) resource.
|
public static void importCsvFile(javax.servlet.ServletContext ctx,
String workspace,
String fileName,
String layerTitle,
String optColumnTypes)
throws Exception
ctx - workspace - fileName - layerTitle - optColumnTypes - Exceptionpublic static void importRemoteFile(javax.servlet.ServletContext ctx,
String layerTitle,
String optColumnTypes,
String workspace,
String remoteCSVUrl,
String usedCSVDelimiter,
String decimalSep,
String thousandsSep,
String optLongitudeName,
String optLatitudeName,
boolean approved,
String keepRowColumnName,
String keepRowColumnValue)
throws Exception
ctx - layerTitle - optColumnTypes - workspace - remoteCSVUrl - usedCSVDelimiter - decimalSep - thousandsSep - optLongitudeName - optLatitudeName - approved - keepRowColumnName - keepRowColumnValue - Exceptionpublic static File getFreshCSVFile(javax.servlet.ServletContext ctx, String workspace, String remoteCSVUrl, String fromDelimiter, String toDelimiter, List<String> columnTypes, String decimalSep, String thousandsSep, String optLongitudeName, String optLatitudeName, boolean approved, String keepRowColumnName, String keepRowColumnValue) throws Exception
ctx - workspace - remoteCSVUrl - fromDelimiter - toDelimiter - columnTypes - decimalSep - thousandsSep - optLongitudeName - optLatitudeName - approved - keepRowColumnName - keepRowColumnValue - Exceptionpublic static void cleanCSVFile(File csvFile, String fromDelimiter, String toDelimiter, List<String> columnTypes, String decimalSep, String thousandsSep, String optLongitudeName, String optLatitudeName, String keepRowColumnName, String keepRowColumnValue) throws IOException
csvFile - fromDelimiter - toDelimiter - columnTypes - decimalSep - thousandsSep - optLongitudeName - optLatitudeName - IOExceptionCopyright © 2021. All rights reserved.