File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed
itext/itext.io/itext/io/source Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -56,9 +56,13 @@ namespace iText.IO.Source
56
56
/// </summary>
57
57
public sealed class RandomAccessSourceFactory
58
58
{
59
- /// <summary>Whether the full content of the source should be read into memory at construction
60
- /// </summary>
61
- private bool forceRead = false ;
59
+ /// <summary>The default value for the forceRead flag
60
+ /// </summary>
61
+ private static bool forceReadDefaultValue = false ;
62
+
63
+ /// <summary>Whether the full content of the source should be read into memory at construction
64
+ /// </summary>
65
+ private bool forceRead = false ;
62
66
63
67
/// <summary>Whether the underlying file should have a RW lock on it or just an R lock
64
68
/// </summary>
@@ -70,12 +74,19 @@ public RandomAccessSourceFactory()
70
74
{
71
75
}
72
76
77
+ /// <summary>Determines the default value for the forceRead flag
78
+ /// </summary>
79
+ /// <param name="forceRead">true if by default the full content will be read, false otherwise</param>
80
+ public static void SetForceReadDefaultValue ( bool forceRead )
81
+ {
82
+ forceReadDefaultValue = forceRead ;
83
+ }
84
+
73
85
/// <summary>Determines whether the full content of the source will be read into memory
74
86
/// </summary>
75
87
/// <param name="forceRead">true if the full content will be read, false otherwise</param>
76
88
/// <returns>this object (this allows chaining of method calls)</returns>
77
- public RandomAccessSourceFactory SetForceRead ( bool forceRead
78
- )
89
+ public RandomAccessSourceFactory SetForceRead ( bool forceRead )
79
90
{
80
91
this . forceRead = forceRead ;
81
92
return this ;
Original file line number Diff line number Diff line change 1
- afca8dfd654dea536057f3bd559b35ec9c6a7d89
1
+ 52e1c5a8eb98fae8f7522207808bdc859fa9559b
You can’t perform that action at this time.
0 commit comments