public class Map2DUtils
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
Map2DUtils()
Don't allow instantiation, do allow overrides.
|
Modifier and Type | Method and Description |
---|---|
static Map2D<java.lang.String,java.lang.String,java.lang.String> |
loadMap2D(java.io.File mapFile,
java.lang.String separator,
java.lang.String qualifier,
java.lang.String encoding)
Load string map2Dfrom a file.
|
static Map2D<java.lang.String,java.lang.String,java.lang.String> |
loadMap2D(java.lang.String mapFileName,
java.lang.String separator,
java.lang.String qualifier,
java.lang.String encoding)
Load string set from a file name.
|
static Map2D<java.lang.String,java.lang.String,java.lang.String> |
loadMap2D(java.net.URL map2DURL,
java.lang.String separator,
java.lang.String qualifier,
java.lang.String encoding)
Load string map2D from a URL.
|
static void |
saveMap2D(Map2D<?,?,?> map2D,
java.io.File mapFile,
java.lang.String separator,
java.lang.String qualifier,
java.lang.String encoding)
Save map2D as string to a file.
|
static void |
saveMap2D(Map2D<?,?,?> map2D,
java.lang.String mapFileName,
java.lang.String separator,
java.lang.String qualifier,
java.lang.String encoding)
Save map2D as string to a file name.
|
public static Map2D<java.lang.String,java.lang.String,java.lang.String> loadMap2D(java.net.URL map2DURL, java.lang.String separator, java.lang.String qualifier, java.lang.String encoding) throws java.io.IOException, java.io.FileNotFoundException
map2DURL
- URL for map2Dfile.separator
- Field separator.qualifier
- Quote character.encoding
- Character encoding for the file.java.io.FileNotFoundException
- If input file does not exist.java.io.IOException
- If input file cannot be opened.public static Map2D<java.lang.String,java.lang.String,java.lang.String> loadMap2D(java.io.File mapFile, java.lang.String separator, java.lang.String qualifier, java.lang.String encoding) throws java.io.IOException, java.io.FileNotFoundException
mapFile
- Map file.separator
- Field separator.qualifier
- Quote character.encoding
- Character encoding for the file.java.io.FileNotFoundException
- If input file does not exist.java.io.IOException
- If input file cannot be opened.public static Map2D<java.lang.String,java.lang.String,java.lang.String> loadMap2D(java.lang.String mapFileName, java.lang.String separator, java.lang.String qualifier, java.lang.String encoding) throws java.io.IOException, java.io.FileNotFoundException
mapFileName
- Map file name.separator
- Field separator.qualifier
- Quote character.encoding
- Character encoding for the file.java.io.FileNotFoundException
- If input file does not exist.java.io.IOException
- If input file cannot be opened.public static void saveMap2D(Map2D<?,?,?> map2D, java.io.File mapFile, java.lang.String separator, java.lang.String qualifier, java.lang.String encoding) throws java.io.IOException, java.io.FileNotFoundException
map2D
- Map2D to save.mapFile
- Output file name.separator
- Field separator.qualifier
- Quote character.encoding
- Character encoding for the file.java.io.IOException
- If output file has error.java.io.FileNotFoundException
public static void saveMap2D(Map2D<?,?,?> map2D, java.lang.String mapFileName, java.lang.String separator, java.lang.String qualifier, java.lang.String encoding) throws java.io.IOException, java.io.FileNotFoundException
map2D
- Map2D to save.mapFileName
- Output file name.separator
- Field separator.qualifier
- Quote character.encoding
- Character encoding for the file.java.io.IOException
- If output file has error.java.io.FileNotFoundException