C# Class 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.
Inheritance: Transport, ITransportBundle
ファイルを表示 Open project: stschake/GitSharp Class Usage Examples

Public Methods

Method Description
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

Method Details

TransportBundleStream() public method

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.
return System

close() public method

public close ( ) : void
return void

openFetch() public method

public openFetch ( ) : IFetchConnection
return IFetchConnection

openPush() public method

public openPush ( ) : IPushConnection
return IPushConnection