Show / Hide Table of Contents

    Class StreamUtils

    Stream utilities.

    Inheritance
    System.Object
    StreamUtils
    Namespace: Lucene.Net.Benchmarks.ByTask.Utils
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public class StreamUtils : object

    Fields

    | Improve this Doc View Source

    BUFFER_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 Source

    GetInputStream(FileInfo)

    Returns an over the requested file. This method attempts to identify the appropriate instance to return based on the file name (e.g., if it ends with .bz2 or .bzip, return a 'bzip' ).

    Declaration
    public static Stream GetInputStream(FileInfo file)
    Parameters
    Type Name Description
    FileInfo file
    Returns
    Type Description
    Stream
    | Improve this Doc View Source

    GetOutputStream(FileInfo)

    Returns an over the requested file, identifying the appropriate instance similar to GetInputStream(FileInfo).

    Declaration
    public static Stream GetOutputStream(FileInfo file)
    Parameters
    Type Name Description
    FileInfo file
    Returns
    Type Description
    Stream
    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Licensed to the Apache Software Foundation (ASF)