-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathLAIR.IO.xml
539 lines (539 loc) · 24.6 KB
/
LAIR.IO.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
<?xml version="1.0"?>
<doc>
<assembly>
<name>LAIR.IO</name>
</assembly>
<members>
<member name="T:LAIR.IO.BinarySearchTextStream">
<summary>
Represents a stream of text, the lines of which can be searched with a binary search algorithm. Any type of stream can be used
allowing searches on-disk (e.g., using FileStream) or in-memory (e.g., using MemoryStream).
</summary>
</member>
<member name="T:LAIR.IO.SearchTextStream">
<summary>
Represents a text stream, the lines of which can be searched.
</summary>
</member>
<member name="M:LAIR.IO.SearchTextStream.#ctor(System.IO.Stream)">
<summary>
Constructor
</summary>
<param name="stream">Stream to search</param>
</member>
<member name="M:LAIR.IO.SearchTextStream.Search(System.Object)">
<summary>
Searches for a key
</summary>
<param name="key">Key to search for</param>
<returns>Line matching key, or null if key was not found</returns>
</member>
<member name="M:LAIR.IO.SearchTextStream.Search(System.Object,System.Int64,System.Int64)">
<summary>
Searches for a key within a specified byte range
</summary>
<param name="key">Key to search for</param>
<param name="start">Start of byte range</param>
<param name="end">End of byte range</param>
<returns>Line matching key</returns>
</member>
<member name="M:LAIR.IO.SearchTextStream.CheckSearchRange(System.Int64,System.Int64)">
<summary>
Checks the search range
</summary>
<param name="start">Start of range</param>
<param name="end">End of range</param>
</member>
<member name="M:LAIR.IO.SearchTextStream.Close">
<summary>
Closes this search stream and releases all resources
</summary>
</member>
<member name="M:LAIR.IO.SearchTextStream.ReInitialize(System.IO.Stream)">
<summary>
Re-initializes this search stream with a new stream
</summary>
<param name="stream">Stream to initialize with</param>
</member>
<member name="P:LAIR.IO.SearchTextStream.Stream">
<summary>
Gets the stream searched by this instance
</summary>
</member>
<member name="M:LAIR.IO.BinarySearchTextStream.#ctor(System.IO.Stream,LAIR.IO.BinarySearchTextStream.SearchComparisonDelegate)">
<summary>
Constructor
</summary>
<param name="stream">Stream to search</param>
<param name="searchComparison">Search comparison function</param>
</member>
<member name="M:LAIR.IO.BinarySearchTextStream.#ctor(System.String,LAIR.IO.BinarySearchTextStream.SearchComparisonDelegate)">
<summary>
Constructor
</summary>
<param name="path">Path to file for which to create a search stream</param>
<param name="searchComparison">Search comparison function</param>
</member>
<member name="M:LAIR.IO.BinarySearchTextStream.Search(System.Object,System.Int64,System.Int64)">
<summary>
Searches a range in the stream
</summary>
<param name="key">Search key</param>
<param name="start">Start byte position of search</param>
<param name="end">End byte position of search</param>
<returns>Desired line, or null if none was found</returns>
</member>
<member name="T:LAIR.IO.BinarySearchTextStream.SearchComparisonDelegate">
<summary>
Delegate for functions that direct the search by comparing the search key to the current line. The return value
of such a function should be -1 if the search key (first parameter) comes before the current line (second
parameter), 1 if the search key comes after the current line, and 0 if the current line is the desired line.
</summary>
<param name="key">Search key</param>
<param name="currentLine">Current line in the stream</param>
<returns>Described in summary</returns>
</member>
<member name="T:LAIR.IO.Directory">
<summary>
Provides additional filesystem routines
</summary>
</member>
<member name="M:LAIR.IO.Directory.GetNumberedPaths(System.String,System.String,System.String[])">
<summary>
Gets numbered list of paths in a directory. Each path in given directory must contain exactly one integer.
</summary>
<param name="directory">Path to directory</param>
<param name="pattern">Pattern for files to match</param>
<param name="excludeEndings">File endings to exclude from the returned paths</param>
<returns>List of paths, indexed by number</returns>
</member>
<member name="M:LAIR.IO.Directory.CombineNumberedFiles(System.String,System.String,System.Boolean)">
<summary>
Combines numbered files into a single file
</summary>
<param name="directory">Path to directory containing files to combine</param>
<param name="outputPath">Path to output file</param>
<param name="ignoreBlankLines">Whether or not to ignore blank lines</param>
</member>
<member name="M:LAIR.IO.Directory.FindDirectory(System.String,System.String)">
<summary>
Finds a directory
</summary>
<param name="directory">Directory to search</param>
<param name="pattern">Pattern to search for</param>
<returns>Directory path</returns>
</member>
<member name="M:LAIR.IO.Directory.FindFile(System.String,System.String)">
<summary>
Finds a file
</summary>
<param name="directory">Directory to search</param>
<param name="pattern">Pattern to search for</param>
<returns>File path</returns>
</member>
<member name="M:LAIR.IO.Directory.GetTemporaryDirectory(System.String)">
<summary>
Gets the path to a new temporary directory, which will be created before this method returns.
</summary>
<param name="parentDirectory">Parent of temporary directory</param>
<returns>Path to temporary directory</returns>
</member>
<member name="M:LAIR.IO.Directory.PromptForDirectory(System.String)">
<summary>
Prompts the user for a directory
</summary>
<param name="description">Description in browser</param>
<returns>Directory, or null if none</returns>
</member>
<member name="M:LAIR.IO.Directory.PromptForDirectory(System.String,System.String)">
<summary>
Prompts the user for a directory
</summary>
<param name="description">Description in browser</param>
<param name="startDirectory">Starting directory</param>
<returns>Directory, or null if none</returns>
</member>
<member name="T:LAIR.IO.Email">
<summary>
Provides simply access to email transmission
</summary>
</member>
<member name="M:LAIR.IO.Email.SendViaSMTP(System.String,System.Int32,System.Boolean,System.String,System.String,System.String,System.String,System.String,System.String,System.Collections.Generic.IEnumerable{System.Tuple{System.String,System.String}},System.String,System.String,System.Boolean)">
<summary>
Sends an email via SMTP
</summary>
<param name="host"></param>
<param name="port"></param>
<param name="enableSSL"></param>
<param name="username"></param>
<param name="password"></param>
<param name="fromEmail"></param>
<param name="fromName"></param>
<param name="toEmail"></param>
<param name="toName"></param>
<param name="replyToEmailNames"></param>
<param name="subject"></param>
<param name="body"></param>
<param name="bodyIsHTML"></param>
</member>
<member name="T:LAIR.IO.File">
<summary>
Provides additional filesystem routines
</summary>
</member>
<member name="M:LAIR.IO.File.GetNumberOfLines(System.String,System.Boolean,System.Boolean)">
<summary>
Gets the number of lines in a file
</summary>
<param name="path">Path to file to count</param>
<param name="allowBlankLines">Whether or not to allow blank lines</param>
<param name="trimLines">Whether or not to trim lines when counting</param>
<returns>Number of lines in file</returns>
</member>
<member name="M:LAIR.IO.File.GetLineEnding(System.String)">
<summary>
Gets the line ending used for a file - either "\r", "\n", or "\r\n", or "" if no line ending is found
</summary>
<param name="path">Path to file</param>
<returns>Line ending</returns>
</member>
<member name="M:LAIR.IO.File.PromptForOpenPath(System.String)">
<summary>
Prompts the user for a path to open
</summary>
<param name="windowTitle">Title of window</param>
<returns>Selected path, or null for no file</returns>
</member>
<member name="M:LAIR.IO.File.PromptForOpenPath(System.String,System.String)">
<summary>
Prompts the user for a path to open
</summary>
<param name="windowTitle">Title of window</param>
<param name="initialDirectory">Initial directory</param>
<returns>Selected path, or null for no file</returns>
</member>
<member name="M:LAIR.IO.File.PromptForOpenPath(System.String,System.String,System.String)">
<summary>
Prompts the user for a path to open
</summary>
<param name="windowTitle">Title of window</param>
<param name="initialDirectory">Initial directory</param>
<param name="filter">File filter to display</param>
<returns>Selected path, or null for no file</returns>
</member>
<member name="M:LAIR.IO.File.PromptForSavePath(System.String)">
<summary>
Prompts the user for a path to save to
</summary>
<param name="windowTitle">Title of window</param>
<returns>Selected path, or null for no file</returns>
</member>
<member name="M:LAIR.IO.File.PromptForSavePath(System.String,System.String)">
<summary>
Prompts the user for a path to save to
</summary>
<param name="windowTitle">Title of window</param>
<param name="filter">File type filter to use, or null for no filter</param>
<returns>Selected path, or null for no file</returns>
</member>
<member name="M:LAIR.IO.File.SampleLines(System.String,System.String,System.Single)">
<summary>
Samples lines from a file
</summary>
<param name="inputPath">Path to input file</param>
<param name="outputPath">Path to output file</param>
<param name="percentage">Percentage to sample. Sampling is done randomly, so the exact number of sampled lines might differ slightly for small sample sizes.</param>
</member>
<member name="M:LAIR.IO.File.Compress(System.String,System.String,System.Boolean)">
<summary>
Compresses a file using the gzip algorithm
</summary>
<param name="inputPath">Path to input file</param>
<param name="outputPath">Path to output file (can be same as input file)</param>
<param name="overwriteOutputPath">Whether or not to overwrite the output file if it already exists</param>
</member>
<member name="M:LAIR.IO.File.Decompress(System.String,System.String,System.Boolean)">
<summary>
Decompresses a file using the gzip algorithm
</summary>
<param name="inputPath">Path to input file</param>
<param name="outputPath">Path to output file (can be same as input file)</param>
<param name="overwriteOutputPath">Whether or not to overwrite the output file if it already exists</param>
</member>
<member name="T:LAIR.IO.FileLineReader">
<summary>
Reads lines from a file
</summary>
</member>
<member name="M:LAIR.IO.FileLineReader.#ctor(System.String)">
<summary>
Constructor
</summary>
<param name="path">Path to file to count</param>
</member>
<member name="M:LAIR.IO.FileLineReader.Close">
<summary>
Closes this reader
</summary>
</member>
<member name="M:LAIR.IO.FileLineReader.GetEnumerator">
<summary>
Gets an enumerator over lines in the file
</summary>
<returns>Enumerator over lines</returns>
</member>
<member name="M:LAIR.IO.FileLineReader.System#Collections#IEnumerable#GetEnumerator">
<summary>
Gets an enumerator over lines in the file
</summary>
<returns>Enumerator over lines</returns>
</member>
<member name="P:LAIR.IO.FileLineReader.Path">
<summary>
Gets the path to the file to read
</summary>
</member>
<member name="P:LAIR.IO.FileLineReader.Count">
<summary>
Gets the number of lines in the file
</summary>
</member>
<member name="T:LAIR.IO.HashSearchTextStream">
<summary>
Represents a text stream, the lines of which can be searched with a hashing search algorithm. In the hashing search algorithm,
each line is mapped to a hash code. The hash code for a line is mapped to the line's position in the file. To check whether a
line is present, one need only compute the hash of the queried line and read the file at the given position. Because of hash
collisions, one might need to read multiple lines.
</summary>
</member>
<member name="M:LAIR.IO.HashSearchTextStream.#ctor(System.IO.Stream,LAIR.IO.HashSearchTextStream.HashProviderDelegate,LAIR.IO.HashSearchTextStream.MatchProviderDelegate)">
<summary>
Constructor
</summary>
<param name="stream">Stream of text to search</param>
<param name="hashProvider">Hash provider</param>
<param name="matchProvider">Match provider</param>
</member>
<member name="M:LAIR.IO.HashSearchTextStream.#ctor(System.String,LAIR.IO.HashSearchTextStream.HashProviderDelegate,LAIR.IO.HashSearchTextStream.MatchProviderDelegate)">
<summary>
Constructor
</summary>
<param name="path">Path to file for which to create a search stream</param>
<param name="hashProvider">Hash provider</param>
<param name="matchProvider">Match provider</param>
</member>
<member name="M:LAIR.IO.HashSearchTextStream.Initialize">
<summary>
Initializes this search using the current stream
</summary>
</member>
<member name="M:LAIR.IO.HashSearchTextStream.ReInitialize(System.IO.Stream)">
<summary>
Re-initializes this search stream with a new stream
</summary>
<param name="stream">Stream to initialize with</param>
</member>
<member name="M:LAIR.IO.HashSearchTextStream.Search(System.Object,System.Int64,System.Int64)">
<summary>
Searches for a key within a specified byte range
</summary>
<param name="key">Key to search for</param>
<param name="start">Start of byte range</param>
<param name="end">End of byte range</param>
<returns>Line matching key</returns>
</member>
<member name="M:LAIR.IO.HashSearchTextStream.Close">
<summary>
Closes this search and releases all resources
</summary>
</member>
<member name="T:LAIR.IO.HashSearchTextStream.HashType">
<summary>
Types of hashes requested
</summary>
</member>
<member name="F:LAIR.IO.HashSearchTextStream.HashType.Index">
<summary>
Requesting a hash to create the initial index
</summary>
</member>
<member name="F:LAIR.IO.HashSearchTextStream.HashType.Search">
<summary>
Requesting a hash to perform a search
</summary>
</member>
<member name="T:LAIR.IO.HashSearchTextStream.HashProviderDelegate">
<summary>
Delegate for functions that provide hash codes
</summary>
<param name="toHash">Object to get hash code for</param>
<param name="action">Type of hashing action performed</param>
<param name="hashCode">Hash code (output)</param>
<returns>True if hash should be used, false otherwise</returns>
</member>
<member name="T:LAIR.IO.HashSearchTextStream.MatchProviderDelegate">
<summary>
Delegate for functions that check whether a line matches the search criteria
</summary>
<param name="key">Key being searched for</param>
<param name="currentLine">Current line in file</param>
<returns>True if line matches, false otherwise</returns>
</member>
<member name="T:LAIR.IO.InMemoryFileLineReader">
<summary>
Reads lines from a file after storing them in memory. Can be used more than once without reinitializing.
</summary>
</member>
<member name="M:LAIR.IO.InMemoryFileLineReader.#ctor(System.String,System.Boolean,System.Boolean)">
<summary>
Constructor
</summary>
<param name="path">Path to file to count</param>
<param name="allowBlankLines">Whether or not to allow blank lines</param>
<param name="trimLines">Whether or not to trim lines when counting. Can only be true if allowBlank is false.</param>
</member>
<member name="M:LAIR.IO.InMemoryFileLineReader.Close">
<summary>
Closes this reader and releases all memory
</summary>
</member>
<member name="M:LAIR.IO.InMemoryFileLineReader.GetEnumerator">
<summary>
Gets an enumerator over lines in this reader
</summary>
<returns>Enumerator over lines in this reader</returns>
</member>
<member name="P:LAIR.IO.InMemoryFileLineReader.Count">
<summary>
Gets the number of lines in the file
</summary>
</member>
<member name="T:LAIR.IO.LineSearchTextStream">
<summary>
Provides line-based access to a text stream
</summary>
</member>
<member name="M:LAIR.IO.LineSearchTextStream.#ctor(System.String,System.String)">
<summary>
Constructor
</summary>
<param name="path">Path to file to search</param>
<param name="linePositionCachePath">Path to file that stores the line position cache. Computing line positions can be a time consuming
process. The good news is that it only needs to be done once and can then be stored. This file stores the line positions.</param>
</member>
<member name="M:LAIR.IO.LineSearchTextStream.#ctor(System.String)">
<summary>
Constructor
</summary>
<param name="path">Path to file to search</param>
</member>
<member name="M:LAIR.IO.LineSearchTextStream.Search(System.Object,System.Int64,System.Int64)">
<summary>
Searches for a line
</summary>
<param name="key">Line to search for</param>
<param name="start">Start byte</param>
<param name="end">End byte</param>
<returns>Line</returns>
</member>
<member name="P:LAIR.IO.LineSearchTextStream.Count">
<summary>
Gets the number of lines in the text stream
</summary>
</member>
<member name="T:LAIR.IO.StandardOutWriter">
<summary>
Alternative writer for standard out. Pass to Console.SetOut to use.
</summary>
</member>
<member name="M:LAIR.IO.StandardOutWriter.#ctor(System.String,System.Boolean,System.Boolean,System.IO.TextWriter[])">
<summary>
Constructor
</summary>
<param name="path">Path to file to write output to</param>
<param name="writeTimestamp">Whether or not to write a timestamp with each message</param>
<param name="append">Whether or not to append to the output file</param>
<param name="otherOutputs">Other outputs to use</param>
</member>
<member name="M:LAIR.IO.StandardOutWriter.Clear">
<summary>
Truncates the output file and restarts the log
</summary>
</member>
<member name="M:LAIR.IO.StandardOutWriter.Write(System.String)">
<summary>
Writes a string to output. If newlines are present in the passed value they will be written.
</summary>
<param name="value"></param>
</member>
<member name="M:LAIR.IO.StandardOutWriter.WriteLine(System.String)">
<summary>
Writes a string to output. If newlines are present in the passed value they will be removed.
</summary>
<param name="value"></param>
</member>
<member name="M:LAIR.IO.StandardOutWriter.Write(System.String,System.Boolean)">
<summary>
Writes a string to output, optionally followed by a newline
</summary>
<param name="value"></param>
<param name="newLine"></param>
<returns>Value that was written</returns>
</member>
<member name="M:LAIR.IO.StandardOutWriter.Close">
<summary>
Closes this writer
</summary>
</member>
<member name="P:LAIR.IO.StandardOutWriter.Encoding">
<summary>
Gets the encoding used by this writer (always UTF8)
</summary>
</member>
<member name="T:LAIR.IO.Network">
<summary>
Provides convenience routines for network IO
</summary>
</member>
<member name="M:LAIR.IO.Network.GetLocalIpAddresses">
<summary>
Gets IP addresses associated with the local host
</summary>
<returns></returns>
</member>
<member name="M:LAIR.IO.Network.Download(System.String,System.String)">
<summary>
Downloads a file from a URI to a local path
</summary>
<param name="uri">URI to download</param>
<param name="path">Path to download to</param>
</member>
<member name="T:LAIR.IO.OnDiskFileLineReader">
<summary>
Reads lines from a file without storing them in memory. Can be used more than once without reinitializing.
</summary>
</member>
<member name="M:LAIR.IO.OnDiskFileLineReader.#ctor(System.String)">
<summary>
Constructor
</summary>
<param name="path">Path to file to count</param>
</member>
<member name="M:LAIR.IO.OnDiskFileLineReader.Close">
<summary>
Closes the file read by this reader
</summary>
</member>
<member name="M:LAIR.IO.OnDiskFileLineReader.GetEnumerator">
<summary>
Gets an enumerator over lines in the file
</summary>
<returns>Enumerator over lines in the file</returns>
</member>
<member name="P:LAIR.IO.OnDiskFileLineReader.Count">
<summary>
Gets the number of lines in the file
</summary>
</member>
</members>
</doc>