C# Класс GitSharp.Core.Transport.TransportBundleStream

Single shot fetch from a streamed Git bundle. The bundle is Read from an unbuffered input stream, which limits the transport to opening at most one FetchConnection before needing to recreate the transport instance.
Наследование: Transport, ITransportBundle
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
TransportBundleStream ( Repository local, URIish uri, Stream inputStream ) : System

Create a new transport to fetch objects from a streamed bundle. The stream can be unbuffered (buffering is automatically provided internally to smooth out short reads) and unpositionable (the stream is Read from only once, sequentially). When the FetchConnection or the this instance is closed the supplied input stream is also automatically closed. This frees callers from needing to keep track of the supplied stream.

close ( ) : void
openFetch ( ) : IFetchConnection
openPush ( ) : IPushConnection

Описание методов

TransportBundleStream() публичный Метод

Create a new transport to fetch objects from a streamed bundle. The stream can be unbuffered (buffering is automatically provided internally to smooth out short reads) and unpositionable (the stream is Read from only once, sequentially). When the FetchConnection or the this instance is closed the supplied input stream is also automatically closed. This frees callers from needing to keep track of the supplied stream.
public TransportBundleStream ( Repository local, URIish uri, Stream inputStream ) : System
local Repository repository the fetched objects will be loaded into.
uri URIish /// symbolic name of the source of the stream. The URI can /// reference a non-existent resource. It is used only for /// exception reporting. ///
inputStream Stream the stream to Read the bundle from.
Результат System

close() публичный Метод

public close ( ) : void
Результат void

openFetch() публичный Метод

public openFetch ( ) : IFetchConnection
Результат IFetchConnection

openPush() публичный Метод

public openPush ( ) : IPushConnection
Результат IPushConnection