congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
FileData.getFile
Code IndexAdd Tabnine to your IDE (free)

How to use
getFile
method
in
jwbroek.cuelib.FileData

Best Java code snippets using jwbroek.cuelib.FileData.getFile (Showing top 3 results out of 315)

origin: tulskiy/musique

/**
 * Serialize the FileData.
 *
 * @param builder     The StringBuilder to serialize to.
 * @param fileData    The FileData to serialize.
 * @param indentation The current indentation.
 */
private void serializeFileData(final StringBuilder builder, final FileData fileData, final String indentation) {
  CueSheetSerializer.logger.entering
      (CueSheetSerializer.class.getCanonicalName()
          , "serializeFileData(StringBuilder,FileData,String)"
          , new Object[]{builder, fileData, indentation}
      );
  builder.append(indentation).append("FILE");
  if (fileData.getFile() != null) {
    builder.append(' ').append(quoteIfNecessary(fileData.getFile()));
  }
  if (fileData.getFileType() != null) {
    builder.append(' ').append(quoteIfNecessary(fileData.getFileType()));
  }
  builder.append('\n');
  for (TrackData trackData : fileData.getTrackData()) {
    serializeTrackData(builder, trackData, indentation + this.getIndentationValue());
  }
  CueSheetSerializer.logger.exiting
      (CueSheetSerializer.class.getCanonicalName(), "serializeFileData(StringBuilder,FileData,String)");
}
origin: tulskiy/musique

if (!embedded) {
  String parent = file.getTrackData().getFile().getParent();
  File referencedFile = new File(parent, fileData.getFile());
  if (!referencedFile.exists())
    continue;
origin: tulskiy/musique

/**
 * Serialize the FileData.
 * @param parentElement The parent element for the FileData.
 * @param fileData The FileData to serialize.
 */
private void serializeFileData(final Element parentElement, final FileData fileData)
{
 CueSheetToXmlSerializer.logger.entering
  ( CueSheetToXmlSerializer.class.getCanonicalName()
  , "serializeFileData(Element,FileData)"
  , new Object[] {parentElement, fileData}
  );
 Document doc = parentElement.getOwnerDocument();
 Element fileElement = doc.createElementNS(this.namespace, "file");
 parentElement.appendChild(fileElement);
 
 addAttribute(fileElement, "file", fileData.getFile());
 addAttribute(fileElement, "type", fileData.getFileType());
 
 for (TrackData trackData : fileData.getTrackData())
 {
  serializeTrackData(fileElement, trackData);
 }
 CueSheetToXmlSerializer.logger.exiting
  (CueSheetToXmlSerializer.class.getCanonicalName(), "serializeFileData(Element,FileData)");
}
jwbroek.cuelibFileDatagetFile

Javadoc

Get the file that this FileData applies to. May be null, though this is not compliant.

Popular methods of FileData

  • getTrackData
    Get the track data for this file data.
  • <init>
    Create a new FileData instance.
  • getAllIndices
    Get all indices of all tracks that belong to this file data.
  • getFileType
    Get the file type for this FileData. May be null, or any string value, though this is not necessaril
  • getParent
    Get the CueSheet that this FileData belongs to.

Popular in Java

  • Making http requests using okhttp
  • getContentResolver (Context)
  • findViewById (Activity)
  • notifyDataSetChanged (ArrayAdapter)
  • BufferedReader (java.io)
    Wraps an existing Reader and buffers the input. Expensive interaction with the underlying reader is
  • DecimalFormat (java.text)
    A concrete subclass of NumberFormat that formats decimal numbers. It has a variety of features desig
  • Executors (java.util.concurrent)
    Factory and utility methods for Executor, ExecutorService, ScheduledExecutorService, ThreadFactory,
  • Servlet (javax.servlet)
    Defines methods that all servlets must implement. A servlet is a small Java program that runs within
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Join (org.hibernate.mapping)
  • Top 17 Plugins for Android Studio
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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