public static interface RepoCommand.RemoteReader
RepoCommand.DefaultRemoteReader to
 use ls-remote command to read the sha1 from the repository and clone the
 repository to read the file. Callers may have their own quicker
 implementation.| Modifier and Type | Method and Description | 
|---|---|
default byte[] | 
readFile(String uri,
        String ref,
        String path)
Deprecated. 
 
Use  
readFileWithMode(String, String, String)
             instead | 
RepoCommand.RemoteFile | 
readFileWithMode(String uri,
                String ref,
                String path)
Read contents and mode (i.e. 
 | 
ObjectId | 
sha1(String uri,
    String ref)
Read a remote ref sha1. 
 | 
@Nullable ObjectId sha1(String uri, String ref) throws GitAPIException
uri - The URI of the remote repositoryref - Name of the ref to lookup. May be a short-hand form, e.g.
            "master" which is automatically expanded to
            "refs/heads/master" if "refs/heads/master" already exists.GitAPIException@Deprecated default byte[] readFile(String uri, String ref, String path) throws GitAPIException, IOException
readFileWithMode(String, String, String)
             insteaduri - The URI of the remote repositoryref - The ref (branch/tag/etc.) to readpath - The relative path (inside the repo) to the file to readGitAPIExceptionIOException@NonNull RepoCommand.RemoteFile readFileWithMode(String uri, String ref, String path) throws GitAPIException, IOException
uri - The URI of the remote repositoryref - Name of the ref to lookup. May be a short-hand form, e.g.
            "master" which is automatically expanded to
            "refs/heads/master" if "refs/heads/master" already exists.path - The relative path (inside the repo) to the file to readGitAPIException - If the ref have an invalid or ambiguous name, or it does
             not exist in the repository,IOException - If the object does not exist or is too largeCopyright © 2021 Eclipse JGit Project. All rights reserved.