| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.equanda.util.ymport.ImportUtil
public final class ImportUtil
utility for sending a file or strings to the import servlet and getting the answer
| Method Summary | |
|---|---|
static String | 
importData(String importData,
           String urlString,
           ImportCredentials credentials)
sends data to the import servlet  | 
static String | 
importFile(String fileName,
           String urlString,
           ImportCredentials credentials)
sends the content of a file to the import servlet not used anymore  | 
static String | 
importStrings(String[] lines,
              String urlString,
              ImportCredentials credentials)
sends strings to the import servlet  | 
static String | 
quote(String in)
properly quote a string for import, so the result has quotes added at the beginning and end, and has all quotes in the string doubles.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Method Detail | 
|---|
public static String importStrings(String[] lines,
                                   String urlString,
                                   ImportCredentials credentials)
                            throws Exception
lines - Strings wich are sent to the import servleturlString - url to connect tocredentials - credentials
Exception - on failure
public static String importData(String importData,
                                String urlString,
                                ImportCredentials credentials)
                         throws Exception
importData - data which is sent to the import servleturlString - url to connect tocredentials - credentials
Exception - on failure
public static String importFile(String fileName,
                                String urlString,
                                ImportCredentials credentials)
                         throws Exception
fileName - path to the fileurlString - url to connect tocredentials - credentials
Exception - on failurepublic static String quote(String in)
in - string to be quoted
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||