Skip to content

Commit 7dfc735

Browse files
committed
Add new util method.
DEVSIX-1668 Autoported commit. Original commit hash: [9c63e0f]
1 parent 6dbdfe0 commit 7dfc735

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

itext/itext.io/itext/io/util/UrlUtil.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,5 +125,15 @@ public static Uri ToNormalizedURI(FileInfo file) {
125125
public static Uri GetFinalURL(Uri uri) {
126126
return uri;
127127
}
128+
129+
/// <summary>
130+
/// This method gets uri string from a file.
131+
/// </summary>
132+
/// <param name="filename">a given filename</param>
133+
/// <returns>a uri string</returns>
134+
public static String GetFileUriString(String filename)
135+
{
136+
return new FileInfo(filename).FullName;
137+
}
128138
}
129139
}

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
cee74eb0c5ee4e92187573eebd97746e27d9fe15
1+
9c63e0f84eb62cf50b768e3dc8be8d6cce5b5c09

0 commit comments

Comments
 (0)