Class StreamUtils
Stream utilities.
Inheritance
System.Object
    StreamUtils
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Lucene.Net.Benchmarks.ByTask.Utils
Assembly: Lucene.Net.Benchmark.dll
Syntax
public class StreamUtils
  Fields
| Improve this Doc View SourceBUFFER_SIZE
Buffer size used across the benchmark package
Declaration
public static readonly int BUFFER_SIZE
  Field Value
| Type | Description | 
|---|---|
| System.Int32 | 
Methods
| Improve this Doc View SourceGetInputStream(FileInfo)
Returns an System.IO.Stream over the requested file. This method attempts to identify the appropriate System.IO.Stream instance to return based on the file name (e.g., if it ends with .bz2 or .bzip, return a 'bzip' System.IO.Stream).
Declaration
public static Stream GetInputStream(FileInfo file)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.FileInfo | file | 
Returns
| Type | Description | 
|---|---|
| System.IO.Stream | 
GetOutputStream(FileInfo)
Returns an System.IO.Stream over the requested file, identifying the appropriate System.IO.Stream instance similar to GetInputStream(FileInfo).
Declaration
public static Stream GetOutputStream(FileInfo file)
  Parameters
| Type | Name | Description | 
|---|---|---|
| System.IO.FileInfo | file | 
Returns
| Type | Description | 
|---|---|
| System.IO.Stream |