Codota Logo
JGitFileSystemProvider.checkURI
Code IndexAdd Codota to your IDE (free)

How to use
checkURI
method
in
org.kie.commons.java.nio.fs.jgit.JGitFileSystemProvider

Best Java code snippets using org.kie.commons.java.nio.fs.jgit.JGitFileSystemProvider.checkURI (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
OutputStreamWriter o =
  • Codota IconOutputStream out;new OutputStreamWriter(out)
  • Codota IconOutputStream out;String charsetName;new OutputStreamWriter(out, charsetName)
  • Codota IconHttpURLConnection connection;new OutputStreamWriter(connection.getOutputStream())
  • Smart code suggestions by Codota
}
origin: org.kie.commons/kie-nio2-jgit

@Override
public Path getPath( final URI uri )
    throws IllegalArgumentException, FileSystemNotFoundException, SecurityException {
  checkNotNull( "uri", uri );
  checkCondition( "uri scheme not supported", uri.getScheme().equals( getScheme() ) || uri.getScheme().equals( "default" ) );
  checkURI( "uri", uri );
  final JGitFileSystem fileSystem = fileSystems.get( extractRepoName( uri ) );
  if ( fileSystem == null ) {
    throw new FileSystemNotFoundException();
  }
  try {
    return JGitPathImpl.create( fileSystem, URIUtil.decode( extractPath( uri ) ), extractHost( uri ), false );
  } catch ( final URIException e ) {
    return null;
  }
}
origin: org.kie.commons/kie-nio2-jgit

checkNotNull( "uri", uri );
checkCondition( "uri scheme not supported", uri.getScheme().equals( getScheme() ) || uri.getScheme().equals( "default" ) );
checkURI( "uri", uri );
checkNotNull( "env", env );
origin: org.kie.commons/kie-nio2-jgit

@Override
public FileSystem getFileSystem( final URI uri )
    throws IllegalArgumentException, FileSystemNotFoundException, SecurityException {
  checkNotNull( "uri", uri );
  checkCondition( "uri scheme not supported", uri.getScheme().equals( getScheme() ) || uri.getScheme().equals( "default" ) );
  checkURI( "uri", uri );
  final JGitFileSystem fileSystem = fileSystems.get( extractRepoName( uri ) );
  if ( fileSystem == null ) {
    throw new FileSystemNotFoundException( "No filesystem for uri (" + uri + ") found." );
  }
  if ( hasSyncFlag( uri ) ) {
    try {
      final String treeRef = "master";
      final ObjectId oldHead = JGitUtil.getTreeRefObjectId( fileSystem.gitRepo().getRepository(), treeRef );
      final Map<String, String> params = getQueryParams( uri );
      syncRepository( fileSystem.gitRepo(), fileSystem.getCredential(), params.get( "sync" ), hasForceFlag( uri ) );
      final ObjectId newHead = JGitUtil.getTreeRefObjectId( fileSystem.gitRepo().getRepository(), treeRef );
      notifyDiffs( fileSystem, treeRef, "<system>", "<system>", oldHead, newHead );
    } catch ( final Exception ex ) {
      throw new IOException( ex );
    }
  }
  return fileSystem;
}
org.kie.commons.java.nio.fs.jgitJGitFileSystemProvidercheckURI

Popular methods of JGitFileSystemProvider

  • copy
  • createDirectory
  • delete
  • deleteIfExists
  • exists
  • getFileAttributeView
  • getPath
  • getScheme
  • newDirectoryStream
  • newInputStream
  • newOutputStream
  • readAttributes
  • newOutputStream,
  • readAttributes,
  • <init>,
  • amend,
  • buildAndStartDaemon,
  • buildCredential,
  • checkAccess,
  • checkAmend,
  • composePath

Popular in Java

  • Reading from database using SQL prepared statement
  • getApplicationContext (Context)
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • getContentResolver (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • Arrays (java.util)
    This class contains various methods for manipulating arrays (such as sorting and searching). This cl
  • Collection (java.util)
    Collection is the root of the collection hierarchy. It defines operations on data collections and t
  • HttpServlet (javax.servlet.http)
    Provides an abstract class to be subclassed to create an HTTP servlet suitable for a Web site. A sub
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now