Tabnine Logo
Paths.prefixLength
Code IndexAdd Tabnine to your IDE (free)

How to use
prefixLength
method
in
de.schlichtherle.truezip.io.Paths

Best Java code snippets using de.schlichtherle.truezip.io.Paths.prefixLength (Showing top 3 results out of 315)

origin: de.schlichtherle.truezip/truezip-path

private static int prefixLength(String p) {
  return Paths.prefixLength(p, SEPARATOR_CHAR, true);
}
origin: de.schlichtherle.truezip/truezip-path

static int pathPrefixLength(final URI uri) {
  final String ssp = uri.getSchemeSpecificPart();
  final String a = uri.getAuthority();
  final int al = null == a ? 0 : 2 + a.length();
  final int pl = Paths.prefixLength(ssp, SEPARATOR_CHAR, true) - al;
  return pl >= 0 ? pl : Paths.prefixLength(uri.getPath(), SEPARATOR_CHAR, false);
}
origin: de.schlichtherle.truezip/truezip-path

private static String stripPrefix(final String s) {
  return s.substring(Paths.prefixLength(s, SEPARATOR_CHAR, true));
}
de.schlichtherle.truezip.ioPathsprefixLength

Popular methods of Paths

  • normalize
  • contains
  • cutTrailingSeparators
  • isAbsolute
  • split

Popular in Java

  • Reactive rest calls using spring rest template
  • setRequestProperty (URLConnection)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getApplicationContext (Context)
  • GridLayout (java.awt)
    The GridLayout class is a layout manager that lays out a container's components in a rectangular gri
  • 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
  • KeyStore (java.security)
    KeyStore is responsible for maintaining cryptographic keys and their owners. The type of the syste
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • Top 12 Jupyter Notebook extensions
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now