Class TransportBundleFile

    • Field Detail

      • bundle

        private final java.io.File bundle
    • Constructor Detail

      • TransportBundleFile

        TransportBundleFile​(Repository local,
                            URIish uri,
                            java.io.File bundlePath)
      • TransportBundleFile

        public TransportBundleFile​(URIish uri,
                                   java.io.File bundlePath)
        Constructor for TransportBundleFile.
        Parameters:
        uri - a URIish object.
        bundlePath - transport bundle path
    • Method Detail

      • close

        public void close()

        Close any resources used by this transport.

        If the remote repository is contacted by a network socket this method must close that network socket, disconnecting the two peers. If the remote repository is actually local (same system) this method must close any open file handles used to read the "remote" repository.

        AutoClosable.close() declares that it throws Exception. Implementers shouldn't throw checked exceptions. This override narrows the signature to prevent them from doing so.

        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in class Transport