File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed
commons/src/main/java/com/itextpdf/commons Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,9 @@ public abstract class AbstractStatisticsEvent extends AbstractProductITextEvent
38
38
private static final Logger LOGGER = LoggerFactory .getLogger (AbstractStatisticsEvent .class );
39
39
40
40
/**
41
- * @see AbstractProductITextEvent#AbstractProductITextEvent(ProductData)
41
+ * Creates instance of abstract statistics iText event based on passed product data. Only for internal usage.
42
+ *
43
+ * @param productData is a description of the product which has generated an event
42
44
*/
43
45
protected AbstractStatisticsEvent (ProductData productData ) {
44
46
super (productData );
@@ -49,7 +51,7 @@ protected AbstractStatisticsEvent(ProductData productData) {
49
51
* By default prints log warning and returns <code>null</code>.
50
52
*
51
53
* @param statisticsName name of statistics based on which aggregator will be created.
52
- * Shall be one of those returned from {@link this #getStatisticsNames()}
54
+ * Shall be one of those returned from {@link AbstractStatisticsEvent #getStatisticsNames()}
53
55
* @return new instance of {@link AbstractStatisticsAggregator}
54
56
*/
55
57
public AbstractStatisticsAggregator createStatisticsAggregatorFromName (String statisticsName ) {
Original file line number Diff line number Diff line change @@ -203,7 +203,10 @@ public static String getParentDirectoryUri(File file) throws MalformedURLExcepti
203
203
204
204
/**
205
205
* Deletes a file and returns whether the operation succeeded.
206
- * Node that only *files* are supported, not directories.
206
+ * Note that only *files* are supported, not directories.
207
+ *
208
+ * @param file file to be deleted
209
+ * @return true if file was deleted successfully, false otherwise
207
210
*/
208
211
public static boolean deleteFile (File file ) {
209
212
return file .delete ();
@@ -215,6 +218,8 @@ public static boolean deleteFile(File file) {
215
218
* @param url of resource
216
219
*
217
220
* @return parent directory path| the same path if a catalog`s url is passed;
221
+ * @throws URISyntaxException if this URL is not formatted strictly according
222
+ * to RFC2396 and cannot be converted to a URI.
218
223
*/
219
224
public static String parentDirectory (URL url ) throws URISyntaxException {
220
225
return url .toURI ().resolve ("." ).toString ();
You can’t perform that action at this time.
0 commit comments