Changeset 2146
- Timestamp:
- 2008-07-02 14:13:03 (6 months ago)
- Location:
- FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor
- Files:
-
- 3 modified
-
FCKeditor.java (modified) (4 diffs)
-
tool/UtilsFile.java (modified) (6 diffs)
-
tool/UtilsResponse.java (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/FCKeditor.java
r2101 r2146 167 167 168 168 /** 169 * Get the advanced configu ation set.<br />169 * Get the advanced configuration set.<br /> 170 170 * By adding elements to this collection you can override the settings 171 171 * specified in the config.js file. … … 178 178 179 179 /** 180 * Set the advanced configu ation set.180 * Set the advanced configuration set. 181 181 * 182 182 * @param value … … 198 198 if (Utils.isEmpty(txt)) 199 199 return txt; 200 // TODO Strings are inefficent, use StringBuffer instead201 200 txt = txt.replaceAll("&", "&"); 202 201 txt = txt.replaceAll("<", "<"); … … 244 243 String configStr = config.getUrlParams(); 245 244 if (Utils.isNotEmpty(configStr)) 246 // configStr = configStr.substring(1);247 245 strEditor.append(createInputForVariable(null, instanceName.concat("___Config"), 248 246 configStr)); -
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/tool/UtilsFile.java
r2101 r2146 81 81 82 82 /** 83 * Checks if the underlying file of the InputStre m is an image.83 * Checks if the underlying file of the InputStream is an image. 84 84 * 85 85 * @param in An input stream … … 94 94 95 95 /** 96 * TODO - document me!96 * Checks, if <code>path</code> is a valid one. 97 97 * 98 98 * @param path … … 116 116 117 117 /** 118 * TODO - document me! 118 * Makes sure that <code>filename</code> has only one extension. 119 * Other dots will be replaced with '_'. 119 120 * 120 121 * @param filename 121 * @return string with a single dot only122 * @return String with a single extension only. 122 123 */ 123 124 public static String forceSingleExtension(final String filename) { … … 126 127 127 128 /** 128 * TODO - document me!129 * Checks, if <code>filename</code> has a single extension. 129 130 * 130 131 * @param filename 131 * @return <code>true</code> if filename contains severals dotselse132 * <code>false</code> 132 * @return <code>true</code> if filename has just one dot, else 133 * <code>false</code>. 133 134 */ 134 135 public static boolean isSingleExtension(final String filename) { … … 137 138 138 139 /** 139 * TODO - document me! 140 * @param dir 140 * Checks if <code>dir</code> exists, if not it will be created. 141 * 142 * @param dir Directory to check/create. 141 143 */ 142 public static void checkDirAndCreate( File dir) {144 public static void checkDirAndCreate(final File dir) { 143 145 if (!dir.exists()) { 144 146 dir.mkdirs(); … … 148 150 149 151 /** 150 * TODO - document me! 152 * Constructs the server-side path for a special <code>resourceType</code>. 153 * Path is inside the <code>UserFilePath</code>. 154 * 151 155 * @param request 152 156 * @param resourceType 153 * @return server-side path 157 * @return server-side path of <code>resourceType</code>. 154 158 */ 155 public static String constructServerSidePath( HttpServletRequest request,156 ResourceTypeHandler resourceType) {159 public static String constructServerSidePath(final HttpServletRequest request, 160 final ResourceTypeHandler resourceType) { 157 161 StringBuffer sb = new StringBuffer(ConnectorHandler 158 162 .getUserFilesPath(request)); -
FCKeditor.Java/trunk/java-core/src/main/java/net/fckeditor/tool/UtilsResponse.java
r2028 r2146 23 23 import javax.servlet.http.HttpServletRequest; 24 24 25 import net.fckeditor.connector.ConnectorServlet; 25 26 import net.fckeditor.handlers.ConnectorHandler; 26 27 import net.fckeditor.handlers.ResourceTypeHandler; … … 34 35 35 36 /** 36 * TODO - document me!37 * Constructs an url, using as response in {@link ConnectorServlet}. 37 38 * 38 39 * @param request