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
Afficher le fichier Open project: stschake/GitSharp Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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.
Résultat System

close() public méthode

public close ( ) : void
Résultat void

openFetch() public méthode

public openFetch ( ) : IFetchConnection
Résultat IFetchConnection

openPush() public méthode

public openPush ( ) : IPushConnection
Résultat IPushConnection