Skip to content

Commit eb45a73

Browse files
committed
Deprecate a method which doesn't make any sence in .NET nd therefore doesn't work there.
1 parent 0f5add3 commit eb45a73

File tree

1 file changed

+22
-20
lines changed

1 file changed

+22
-20
lines changed

itext/itext.io/itext/io/source/RandomAccessSourceFactory.cs

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,15 @@ public sealed class RandomAccessSourceFactory
6262
/// </summary>
6363
private bool forceRead = false;
6464

65-
/// <summary>
66-
/// Whether
67-
/// <see cref="System.IO.FileStream"/>
68-
/// should be used instead of a
69-
/// <see cref="java.nio.channels.FileChannel"/>
70-
/// , where applicable
71-
/// </summary>
72-
private bool usePlainRandomAccess = false;
65+
/// <summary>
66+
/// Whether
67+
/// <see cref="System.IO.FileStream"/>
68+
/// should be used instead of a
69+
/// <see cref="java.nio.channels.FileChannel"/>
70+
/// , where applicable
71+
/// </summary>
72+
[System.ObsoleteAttribute(@"Will be removed in iText 7.2. The field makes sense only in Java.")]
73+
private bool usePlainRandomAccess = false;
7374

7475
/// <summary>Whether the underlying file should have a RW lock on it or just an R lock
7576
/// </summary>
@@ -92,18 +93,19 @@ public RandomAccessSourceFactory SetForceRead(bool forceRead
9293
return this;
9394
}
9495

95-
/// <summary>
96-
/// Determines whether
97-
/// <see cref="System.IO.FileStream"/>
98-
/// should be used as the primary data access mechanism
99-
/// </summary>
100-
/// <param name="usePlainRandomAccess">
101-
/// whether
102-
/// <see cref="System.IO.FileStream"/>
103-
/// should be used as the primary data access mechanism
104-
/// </param>
105-
/// <returns>this object (this allows chaining of method calls)</returns>
106-
public RandomAccessSourceFactory SetUsePlainRandomAccess(bool
96+
/// <summary>
97+
/// Determines whether
98+
/// <see cref="System.IO.FileStream"/>
99+
/// should be used as the primary data access mechanism
100+
/// </summary>
101+
/// <param name="usePlainRandomAccess">
102+
/// whether
103+
/// <see cref="System.IO.FileStream"/>
104+
/// should be used as the primary data access mechanism
105+
/// </param>
106+
/// <returns>this object (this allows chaining of method calls)</returns>
107+
[System.ObsoleteAttribute(@"Will be removed in iText 7.2. The method makes sense only in Java.")]
108+
public RandomAccessSourceFactory SetUsePlainRandomAccess(bool
107109
usePlainRandomAccess)
108110
{
109111
this.usePlainRandomAccess = usePlainRandomAccess;

0 commit comments

Comments
 (0)