Tabnine Logo
ID3v2FrameSet.<init>
Code IndexAdd Tabnine to your IDE (free)

How to use
com.mpatric.mp3agic.ID3v2FrameSet
constructor

Best Java code snippets using com.mpatric.mp3agic.ID3v2FrameSet.<init> (Showing top 4 results out of 315)

origin: mpatric/mp3agic

protected void addFrame(ID3v2Frame frame, boolean replace) {
  ID3v2FrameSet frameSet = frameSets.get(frame.getId());
  if (frameSet == null) {
    frameSet = new ID3v2FrameSet(frame.getId());
    frameSet.addFrame(frame);
    frameSets.put(frame.getId(), frameSet);
  } else if (replace) {
    frameSet.clear();
    frameSet.addFrame(frame);
  } else {
    frameSet.addFrame(frame);
  }
}
origin: mpatric/mp3agic

@Override
public void setGenreDescription(String text) {
  ID3v2TextFrameData frameData = new ID3v2TextFrameData(useFrameUnsynchronisation(), new EncodedText(text));
  ID3v2FrameSet frameSet = getFrameSets().get(ID_GENRE);
  if (frameSet == null) {
    getFrameSets().put(ID_GENRE, frameSet = new ID3v2FrameSet(ID_GENRE));
  }
  frameSet.clear();
  frameSet.addFrame(createFrame(ID_GENRE, frameData.toBytes()));
}
origin: com.mpatric/mp3agic

protected void addFrame(ID3v2Frame frame, boolean replace) {
  ID3v2FrameSet frameSet = frameSets.get(frame.getId());
  if (frameSet == null) {
    frameSet = new ID3v2FrameSet(frame.getId());
    frameSet.addFrame(frame);
    frameSets.put(frame.getId(), frameSet);
  } else if (replace) {
    frameSet.clear();
    frameSet.addFrame(frame);
  } else {
    frameSet.addFrame(frame);
  }
}
origin: com.mpatric/mp3agic

@Override
public void setGenreDescription(String text) {
  ID3v2TextFrameData frameData = new ID3v2TextFrameData(useFrameUnsynchronisation(), new EncodedText(text));
  ID3v2FrameSet frameSet = getFrameSets().get(ID_GENRE);
  if (frameSet == null) {
    getFrameSets().put(ID_GENRE, frameSet = new ID3v2FrameSet(ID_GENRE));
  }
  frameSet.clear();
  frameSet.addFrame(createFrame(ID_GENRE, frameData.toBytes()));
}
com.mpatric.mp3agicID3v2FrameSet<init>

Popular methods of ID3v2FrameSet

  • getFrames
  • addFrame
  • clear
  • getId

Popular in Java

  • Reactive rest calls using spring rest template
  • notifyDataSetChanged (ArrayAdapter)
  • scheduleAtFixedRate (Timer)
  • onCreateOptionsMenu (Activity)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • SimpleDateFormat (java.text)
    Formats and parses dates in a locale-sensitive manner. Formatting turns a Date into a String, and pa
  • Executor (java.util.concurrent)
    An object that executes submitted Runnable tasks. This interface provides a way of decoupling task s
  • Modifier (javassist)
    The Modifier class provides static methods and constants to decode class and member access modifiers
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
  • Loader (org.hibernate.loader)
    Abstract superclass of object loading (and querying) strategies. This class implements useful common
  • 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