PasteSite.Com

Recent Pastes

Sign Up!

PasteSite is open to the public, but with limited features. Register to be able to modify access rights, track your pastes and more...

Change the theme

If you prefer reading light text on a dark background to dark text on a light background, then you might want to try the dark theme.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Cyborg ~/Documents/workspace/Tasting/src/Edible % cat Hungery.scala 
package Edible

import org.jaudiotagger.audio._
import org.jaudiotagger.tag._

object Hungery extends Application {
  println("I AM HUNGERY. FEED ME ROMAINEANS")
  var f = AudioFileIO.read(new java.io.File("/tmp/test.mp3"))
  var tag = f.getTag()
  var header = f.getAudioHeader()
  println("Artist: " + tag.getFirst( TagFieldKey.ARTIST ) )
  println("Album: "  + tag.getFirst( TagFieldKey.ALBUM  ) )
  println("Year: "   + tag.getFirst( TagFieldKey.YEAR   ) )
  println("Track: "  + tag.getFirst( TagFieldKey.TRACK  ) )
  println("Title: "  + tag.getFirst( TagFieldKey.TITLE  ) )
}

Reply to This Paste

(leave blank to make this paste permanent)
(if set as private)