File tree Expand file tree Collapse file tree 2 files changed +18
-4
lines changed
itext/itext.commons/itext/commons Expand file tree Collapse file tree 2 files changed +18
-4
lines changed Original file line number Diff line number Diff line change @@ -35,8 +35,10 @@ public abstract class AbstractStatisticsEvent : AbstractProductITextEvent {
35
35
private static readonly ILogger LOGGER = ITextLogManager . GetLogger ( typeof ( iText . Commons . Actions . AbstractStatisticsEvent
36
36
) ) ;
37
37
38
- /// <seealso cref="AbstractProductITextEvent.AbstractProductITextEvent(iText.Commons.Actions.Data.ProductData)
39
- /// "/>
38
+ /// <summary>Creates instance of abstract statistics iText event based on passed product data.</summary>
39
+ /// <remarks>Creates instance of abstract statistics iText event based on passed product data. Only for internal usage.
40
+ /// </remarks>
41
+ /// <param name="productData">is a description of the product which has generated an event</param>
40
42
protected internal AbstractStatisticsEvent ( ProductData productData )
41
43
: base ( productData ) {
42
44
}
@@ -49,7 +51,7 @@ protected internal AbstractStatisticsEvent(ProductData productData)
49
51
/// <param name="statisticsName">
50
52
/// name of statistics based on which aggregator will be created.
51
53
/// Shall be one of those returned from
52
- /// <see>this#getStatisticsNames()</see >
54
+ /// <see cref="GetStatisticsNames()"/ >
53
55
/// </param>
54
56
/// <returns>
55
57
/// new instance of
Original file line number Diff line number Diff line change @@ -164,8 +164,15 @@ public static String GetBaseDirectory() {
164
164
return AppDomain . CurrentDomain . BaseDirectory ;
165
165
}
166
166
167
+ /// <summary>
167
168
/// Deletes a file and returns whether the operation succeeded.
168
- /// Node that only *files* are supported, not directories.
169
+ /// </summary>
170
+ /// <remarks>
171
+ /// Deletes a file and returns whether the operation succeeded.
172
+ /// Note that only *files* are supported, not directories.
173
+ /// </remarks>
174
+ /// <param name="file">file to be deleted</param>
175
+ /// <returns>true if file was deleted successfully, false otherwise</returns>
169
176
public static bool DeleteFile ( FileInfo file ) {
170
177
try {
171
178
file . Delete ( ) ;
@@ -175,6 +182,11 @@ public static bool DeleteFile(FileInfo file) {
175
182
}
176
183
}
177
184
185
+ /// <summary>
186
+ /// Returns an URL of the parent directory for the resource.
187
+ /// </summary>
188
+ /// <param name="url">of resource</param>
189
+ /// <returns>parent directory path| the same path if a catalog`s url is passed;</returns>
178
190
public static String ParentDirectory ( Uri url ) {
179
191
return new Uri ( url , "." ) . ToString ( ) ;
180
192
}
You can’t perform that action at this time.
0 commit comments