Tabnine Logo
Paths$Splitter
Code IndexAdd Tabnine to your IDE (free)

How to use
Paths$Splitter
in
de.schlichtherle.truezip.io

Best Java code snippets using de.schlichtherle.truezip.io.Paths$Splitter (Showing top 4 results out of 315)

origin: de.schlichtherle.truezip/truezip-file

splitter.split(path);
final String parent = splitter.getParentPath();
final String member = splitter.getMemberName();
origin: de.schlichtherle.truezip/truezip-file

/**
 * Initialize this file object by scanning its path for archive
 * files, using the given {@code ancestor} file (i.e. a direct or
 * indirect parent file) if any.
 * {@code file} and {@code detector} must already be initialized!
 * Must not be called to re-initialize this object!
 */
private void scan(final @CheckForNull TFile ancestor) {
  final String path = super.getPath();
  assert ancestor == null || path.startsWith(ancestor.getPath());
  assert file.getPath().equals(path);
  assert null != detector;
  final StringBuilder enclEntryNameBuf = new StringBuilder(path.length());
  scan(ancestor, detector, 0, path, enclEntryNameBuf, new Splitter(separatorChar, false));
  try {
    enclEntryName = 0 >= enclEntryNameBuf.length()
        ? null
        : new FsEntryName(
          new UriBuilder().path(enclEntryNameBuf.toString()).getUri(),
          CANONICALIZE);
  } catch (URISyntaxException ex) {
    throw new AssertionError(ex);
  }
}
origin: de.schlichtherle.truezip/truezip-path

private FsPath scan(final String path) throws URISyntaxException {
  splitter.split(path);
  final String ps = splitter.getParentPath();
  final FsEntryName men;
  final FsPath pp;
  if (null != ps) {
    men = new FsEntryName(
        uri.path(splitter.getMemberName()).getUri(),
        NULL);
    pp = scan(ps);
origin: de.schlichtherle.truezip/truezip-kernel

private void assertSplit(final String path) {
  final File file = new File(path);
  final String parent = file.getParent();
  final String member = file.getName();
  final Splitter splitter = Paths.split(path, File.separatorChar, false);
  assertEquals(parent, splitter.getParentPath());
  assertEquals(member, splitter.getMemberName());
}
de.schlichtherle.truezip.ioPaths$Splitter

Most used methods

  • getMemberName
  • getParentPath
  • split
  • <init>

Popular in Java

  • Creating JSON documents from java classes using gson
  • scheduleAtFixedRate (ScheduledExecutorService)
  • findViewById (Activity)
  • getContentResolver (Context)
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • InetAddress (java.net)
    An Internet Protocol (IP) address. This can be either an IPv4 address or an IPv6 address, and in pra
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Top PhpStorm plugins
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