MCPcopy Create free account
hub / github.com/Singular/Singular / fileFormatFromExt

Method fileFormatFromExt

Singular/LIB/surfex/EquationAdmin.java:327–347  ·  view source on GitHub ↗
(String strFilename)

Source from the content-addressed store, hash-verified

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) {

Callers 2

getSurfCode_Part2Method · 0.95
saveSurfCodeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected