Fork me on GitHub
  • API

    Show / Hide Table of Contents

    Class StreamUtils

    Stream utilities.

    Inheritance
    object
    StreamUtils
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Lucene.Net.Benchmarks.ByTask.Utils
    Assembly: Lucene.Net.Benchmark.dll
    Syntax
    public static class StreamUtils

    Fields

    BUFFER_SIZE

    Buffer size used across the benchmark package

    Declaration
    public static readonly int BUFFER_SIZE
    Field Value
    Type Description
    int

    Methods

    GetInputStream(FileInfo)

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

    Declaration
    public static Stream GetInputStream(FileInfo file)
    Parameters
    Type Name Description
    FileInfo file
    Returns
    Type Description
    Stream

    GetOutputStream(FileInfo)

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

    Declaration
    public static Stream GetOutputStream(FileInfo file)
    Parameters
    Type Name Description
    FileInfo file
    Returns
    Type Description
    Stream
    Back to top Copyright © 2024 The Apache Software Foundation, Licensed under the Apache License, Version 2.0
    Apache Lucene.Net, Lucene.Net, Apache, the Apache feather logo, and the Apache Lucene.Net project logo are trademarks of The Apache Software Foundation.
    All other marks mentioned may be trademarks or registered trademarks of their respective owners.