Revision 4436 org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.lib/org.gvsig.raster.lib.api/src/main/java/org/gvsig/fmap/dal/coverage/util/FileUtils.java
FileUtils.java | ||
---|---|---|
31 | 31 |
|
32 | 32 |
|
33 | 33 |
/** |
34 |
* Utilities for files, directories and file names
|
|
34 |
* Utilities for files, directories and file names |
|
35 | 35 |
* |
36 | 36 |
* @author Nacho Brodin (nachobrodin@gmail.com) |
37 | 37 |
*/ |
... | ... | |
40 | 40 |
* Copia de ficheros |
41 | 41 |
* @param pathOrig Ruta de origen |
42 | 42 |
* @param pathDst Ruta de destino. |
43 |
* @throws FileNotFoundException |
|
44 |
* @throws IOException |
|
43 | 45 |
*/ |
44 | 46 |
public void copyFile(String pathOrig, String pathDst) throws FileNotFoundException, IOException; |
45 | 47 |
|
... | ... | |
47 | 49 |
* Crea un fichero de georeferenciaci?n (world file) para un dataset |
48 | 50 |
* determinado |
49 | 51 |
* @param fileName Nombre completo del fichero de raster |
50 |
* @param Extent
|
|
52 |
* @param ext
|
|
51 | 53 |
* @param pxWidth Ancho en p?xeles |
52 | 54 |
* @param pxHeight Alto en p?xeles |
53 |
* @return |
|
54 | 55 |
* @throws IOException |
55 | 56 |
*/ |
56 | 57 |
public void createWorldFile(String fileName, Extent ext, int pxWidth, int pxHeight) throws IOException; |
... | ... | |
59 | 60 |
* Crea un fichero de georeferenciaci?n (world file) para un dataset |
60 | 61 |
* determinado |
61 | 62 |
* @param fileName Nombre completo del fichero de raster |
62 |
* @param AffineTransform |
|
63 |
* @param at AffineTransform
|
|
63 | 64 |
* @param pxWidth Ancho en p?xeles |
64 | 65 |
* @param pxHeight Alto en p?xeles |
65 |
* @return |
|
66 | 66 |
* @throws IOException |
67 | 67 |
*/ |
68 | 68 |
public void createWorldFile(String fileName, AffineTransform at, int pxWidth, int pxHeight) throws IOException; |
... | ... | |
97 | 97 |
* @return Cadena que representa el nombre del fichero sin extensi?n ni path de directorios |
98 | 98 |
*/ |
99 | 99 |
public String getFileNameFromCanonical(String file); |
100 |
|
|
100 |
|
|
101 | 101 |
/** |
102 | 102 |
* Obtiene el ?ltimo trozo de la cadena a partir de los caracteres que |
103 | 103 |
* coincidan con el patr?n. En caso de que el patr?n no exista en la cadena |
104 | 104 |
* devuelve esta completa |
105 | 105 |
* @param string |
106 | 106 |
* @param pattern |
107 |
* @return
|
|
107 |
* @return the last part of string maching pattern
|
|
108 | 108 |
*/ |
109 | 109 |
public String getLastPart(String string, String pattern); |
110 | 110 |
|
... | ... | |
124 | 124 |
* @return Nombre del fichero rmf asociado al raster. |
125 | 125 |
*/ |
126 | 126 |
public String getRMFNameFromFileName(String fileName); |
127 |
|
|
128 |
|
|
127 |
|
|
128 |
|
|
129 | 129 |
//******* Servicio de directorios temporales ************** |
130 |
|
|
130 |
|
|
131 | 131 |
/** |
132 | 132 |
* Elimina los ficheros del directorio temporal. Realizamos esta acci?n al |
133 | 133 |
* levantar la librer?a. |
... | ... | |
137 | 137 |
/** |
138 | 138 |
* Esta funci?n crea el directorio para temporales y devuelve el manejador |
139 | 139 |
* del directorio |
140 |
* @return
|
|
140 |
* @return temporal file
|
|
141 | 141 |
*/ |
142 | 142 |
public File getTemporalFile(); |
143 |
|
|
143 |
|
|
144 | 144 |
/** |
145 | 145 |
* Esta funci?n crea el directorio para temporales y devuelve la ruta de este |
146 |
* @return
|
|
146 |
* @return path of temporal file
|
|
147 | 147 |
*/ |
148 | 148 |
public String getTemporalPath(); |
149 |
|
|
149 |
|
|
150 | 150 |
/** |
151 | 151 |
* Gets the name of a raster file |
152 |
* @param name |
|
153 |
* @return the name of a raster file |
|
154 |
* @deprecated |
|
152 | 155 |
*/ |
153 | 156 |
public String getFormatedRasterFileName(String name); |
154 |
|
|
157 |
|
|
155 | 158 |
/** |
156 | 159 |
* Converts a string to MD5 |
157 | 160 |
* @param path |
158 |
* @return |
|
161 |
* @return the MD5
|
|
159 | 162 |
* @throws NoSuchAlgorithmException |
160 | 163 |
*/ |
161 | 164 |
public String convertPathToMD5(String path) throws NoSuchAlgorithmException; |
162 | 165 |
|
163 |
|
|
166 |
|
|
164 | 167 |
//******* Servicio de nombres de capas ?nicos ************** |
165 |
|
|
168 |
|
|
166 | 169 |
/** |
167 | 170 |
* La gesti?n de nombres ?nicos en la generaci?n de capas se lleva de forma |
168 | 171 |
* autom?tica. Cuando alguien crea una capa nueva, si esta no tiene nombre especifico, |
Also available in: Unified diff