(String strFilename)
| 325 | } |
| 326 | |
| 327 | public String fileFormatFromExt(String strFilename) { |
| 328 | // System.out.println("str:"+strFilename); |
| 329 | int ind = strFilename.lastIndexOf("."); |
| 330 | if (ind == -1) { |
| 331 | return (""); |
| 332 | } else { |
| 333 | String strFormat = strFilename.substring(ind + 1); |
| 334 | // System.out.println("strFormat:"+strFormat+"."); |
| 335 | if (strFormat.equals("ras")) { |
| 336 | return ("sun"); |
| 337 | } else if (strFormat.equals("tif")) { |
| 338 | return ("tiff"); |
| 339 | } else if (strFormat.equals("JPG")) { |
| 340 | // System.out.println("strFormat1:"+strFormat+"."); |
| 341 | return ("jpg"); |
| 342 | } else { |
| 343 | // System.out.println("strFormat2:"+strFormat+"."); |
| 344 | return (strFormat); |
| 345 | } |
| 346 | } |
| 347 | } |
| 348 | |
| 349 | public String getSurfCode_Part1(Dimension d, boolean antialiasing, |
| 350 | jv4surfex jv4sx) { |
no outgoing calls
no test coverage detected