Tabnine Logo
Path.getExt
Code IndexAdd Tabnine to your IDE (free)

How to use
getExt
method
in
juzu.impl.common.Path

Best Java code snippets using juzu.impl.common.Path.getExt (Showing top 10 results out of 315)

origin: juzu/juzu

/**
 * Returns the path simple name: the raw name followed by the extension.
 *
 * @return the simple name
 */
public String getSimpleName() {
 String ext = getExt();
 String rawName = getRawName();
 if (ext != null) {
  return rawName + "." + ext;
 }
 else {
  return rawName;
 }
}
origin: org.juzu/juzu-core

/**
 * Returns the path simple name: the raw name followed by the extension.
 *
 * @return the simple name
 */
public String getSimpleName() {
 String ext = getExt();
 String rawName = getRawName();
 if (ext != null) {
  return rawName + "." + ext;
 }
 else {
  return rawName;
 }
}
origin: juzu/juzu

public String getCanonical() {
 if (canonical == null) {
  StringBuilder sb = new StringBuilder();
  if (isAbsolute()) {
   sb.append('/');
  }
  for (int i = 0;i < name.size();i++) {
   if (i > 0) {
    sb.append('/');
   }
   sb.append(name.get(i));
  }
  String ext = getExt();
  if (ext != null) {
   sb.append('.').append(ext);
  }
  canonical = sb.toString();
 }
 return canonical;
}
origin: org.juzu/juzu-core

public String getCanonical() {
 if (canonical == null) {
  StringBuilder sb = new StringBuilder();
  if (isAbsolute()) {
   sb.append('/');
  }
  for (int i = 0;i < name.size();i++) {
   if (i > 0) {
    sb.append('/');
   }
   sb.append(name.get(i));
  }
  String ext = getExt();
  if (ext != null) {
   sb.append('.').append(ext);
  }
  canonical = sb.toString();
 }
 return canonical;
}
origin: juzu/juzu

/**
 * Resolve a path with respect to this name and return an absolute path.
 *
 * @param path the path
 * @return the corresponding absolute path
 */
public Path.Absolute resolve(Path path) {
 if (path instanceof Path.Absolute) {
  return (Path.Absolute)path;
 } else {
  return Path.absolute(append(path.getName()), path.getExt());
 }
}
origin: org.juzu/juzu-core

/**
 * Resolve a path with respect to this name and return an absolute path.
 *
 * @param path the path
 * @return the corresponding absolute path
 */
public Path.Absolute resolve(Path path) {
 if (path instanceof Path.Absolute) {
  return (Path.Absolute)path;
 } else {
  return Path.absolute(append(path.getName()), path.getExt());
 }
}
origin: org.juzu/juzu-core

private void assertPath(boolean absolute, String[] names, String name, String extension, Path test) {
 Assert.assertEquals(absolute, test.isAbsolute());
 Iterable<String> qn = test.getDirs();
 Assert.assertNotNull(qn);
 Assert.assertEquals(Arrays.asList(names), Tools.list(qn));
 Assert.assertEquals(name, test.getRawName());
 Assert.assertEquals(extension, test.getExt());
}
origin: juzu/juzu

private void assertPath(boolean absolute, String[] names, String name, String extension, Path test) {
 Assert.assertEquals(absolute, test.isAbsolute());
 Iterable<String> qn = test.getDirs();
 Assert.assertNotNull(qn);
 Assert.assertEquals(Arrays.asList(names), Tools.list(qn));
 Assert.assertEquals(name, test.getRawName());
 Assert.assertEquals(extension, test.getExt());
}
origin: org.juzu/juzu-core

File from;
String suffix;
if (path.getExt() == null) {
 from = sourcePath.getPath(root, path.getName());
 if (from == null) {
origin: juzu/juzu

File from;
String suffix;
if (path.getExt() == null) {
 from = sourcePath.getPath(root, path.getName());
 if (from == null) {
juzu.impl.commonPathgetExt

Javadoc

Returns the path extension.

Popular methods of Path

  • parse
  • absolute
  • as
  • getCanonical
  • getDirs
    Returns the path directories as a name.
  • getRawName
    Returns the path raw name.
  • isAbsolute
  • relative
  • append
  • create
  • getName
    Returns the path as a name.
  • getSimpleName
    Returns the path simple name: the raw name followed by the extension.
  • getName,
  • getSimpleName,
  • isRelative

Popular in Java

  • Reading from database using SQL prepared statement
  • getExternalFilesDir (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • onCreateOptionsMenu (Activity)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Table (org.hibernate.mapping)
    A relational table
  • Logger (org.slf4j)
    The org.slf4j.Logger interface is the main user entry point of SLF4J API. It is expected that loggin
  • Best plugins for Eclipse
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