- Timestamp:
- 2008-07-02 14:13:03 (6 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
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));