Tabnine Logo
PApplet.checkExtension
Code IndexAdd Tabnine to your IDE (free)

How to use
checkExtension
method
in
processing.core.PApplet

Best Java code snippets using processing.core.PApplet.checkExtension (Showing top 6 results out of 315)

origin: ajavamind/Processing-Cardboard

static public String extensionOptions(boolean loading, String filename, String options) {
 String extension = PApplet.checkExtension(filename);
 if (extension != null) {
  for (String possible : loading ? loadExtensions : saveExtensions) {
   if (extension.equals(possible)) {
    if (options == null) {
     return extension;
    } else {
     // prepend the extension to the options (will be replaced by other
     // options that override it later in the load loop)
     return extension + "," + options;
    }
   }
  }
 }
 return options;
}
origin: org.processing/core

static public String extensionOptions(boolean loading, String filename, String options) {
 String extension = PApplet.checkExtension(filename);
 if (extension != null) {
  for (String possible : loading ? loadExtensions : saveExtensions) {
   if (extension.equals(possible)) {
    if (options == null) {
     return extension;
    } else {
     // prepend the extension to the options (will be replaced by other
     // options that override it later in the load loop)
     return extension + "," + options;
    }
   }
  }
 }
 return options;
}
origin: mirador/mirador

 public void outputSelected(File selection) {
  if (selection == null) return;
  
  String pdfFilename = selection.getAbsolutePath();
  String ext = PApplet.checkExtension(pdfFilename);
  if (ext == null || !ext.equals("pdf")) {
   pdfFilename += ".pdf";
  }
  app.intf.record(pdfFilename);
 }   
}
origin: ajavamind/Processing-Cardboard

public Table loadTable(String filename, String options) {
  try {
    String ext = checkExtension(filename);
    if (ext != null) {
      if (ext.equals("csv") || ext.equals("tsv")) {
        if (options == null) {
          options = ext;
        } else {
          options = ext + "," + options;
        }
      }
    }
    return new Table(createInput(filename), options);
  } catch (IOException e) {
    e.printStackTrace();
    return null;
  }
}
origin: mirador/mirador

String ext = PApplet.checkExtension(filename);
if (ext == null || (!ext.equals("csv") && !ext.equals("tsv"))) {
 filename += ".csv";
origin: mirador/mirador

String ext = PApplet.checkExtension(varFN);
if (ext == null || !ext.equals("txt")) {
 varFN += ".txt";
processing.corePAppletcheckExtension

Javadoc

Get the compression-free extension for this filename.

Popular methods of PApplet

  • constrain
  • createGraphics
    Create an offscreen graphics surface for drawing, in this case for a renderer that writes to a file
  • loadStrings
    ( begin auto-generated from loadStrings.xml ) Reads the contents of a file or url and creates a Stri
  • saveStrings
    ( begin auto-generated from saveStrings.xml ) Writes an array of strings to a file, one line per str
  • abs
  • createImage
    ( begin auto-generated from createImage.xml ) Creates a new PImage (the datatype for storing images)
  • createShape
  • createWriter
    ( begin auto-generated from createWriter.xml ) Creates a new file in the sketch folder, and a PrintW
  • loadImage
  • main
    main() method for running this class from the command line. Usage: PApplet [options] [s
  • max
  • parseInt
  • max,
  • parseInt,
  • random,
  • round,
  • split,
  • sqrt,
  • unhex,
  • arrayCopy,
  • ceil

Popular in Java

  • Running tasks concurrently on multiple threads
  • getSharedPreferences (Context)
  • notifyDataSetChanged (ArrayAdapter)
  • compareTo (BigDecimal)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Deque (java.util)
    A linear collection that supports element insertion and removal at both ends. The name deque is shor
  • BoxLayout (javax.swing)
  • Join (org.hibernate.mapping)
  • 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