< prev index next >

src/java.base/share/classes/sun/net/www/MimeEntry.java

Print this page

        

*** 35,45 **** private int action; private String command; private String description; private String imageFileName; ! private String fileExtensions[]; boolean starred; // Actions public static final int UNKNOWN = 0; --- 35,45 ---- private int action; private String command; private String description; private String imageFileName; ! private String[] fileExtensions; boolean starred; // Actions public static final int UNKNOWN = 0;
*** 91,101 **** this.tempFileNameTemplate = tempFileNameTemplate; } // This is the one called by the public constructor. MimeEntry(String typeName, int action, String command, ! String imageFileName, String fileExtensions[]) { this.typeName = typeName.toLowerCase(); this.action = action; this.command = command; this.imageFileName = imageFileName; --- 91,101 ---- this.tempFileNameTemplate = tempFileNameTemplate; } // This is the one called by the public constructor. MimeEntry(String typeName, int action, String command, ! String imageFileName, String[] fileExtensions) { this.typeName = typeName.toLowerCase(); this.action = action; this.command = command; this.imageFileName = imageFileName;
*** 188,198 **** } public synchronized void setExtensions(String extensionString) { StringTokenizer extTokens = new StringTokenizer(extensionString, ","); int numExts = extTokens.countTokens(); ! String extensionStrings[] = new String[numExts]; for (int i = 0; i < numExts; i++) { String ext = (String)extTokens.nextElement(); extensionStrings[i] = ext.trim(); } --- 188,198 ---- } public synchronized void setExtensions(String extensionString) { StringTokenizer extTokens = new StringTokenizer(extensionString, ","); int numExts = extTokens.countTokens(); ! String[] extensionStrings = new String[numExts]; for (int i = 0; i < numExts; i++) { String ext = (String)extTokens.nextElement(); extensionStrings[i] = ext.trim(); }
< prev index next >