Image

Java and ASF (or WMA)

Hi fellow Java programmers, this is my first post here and I need your help!

I'm going to be a college freshman this fall and I've been a programmer for some (2-3) years now.

I've been using a program called AsfTools 3.1 for a long time to split and join asf files. I record streaming radio from the Internet and split the recorded clip into 10-minute files. Then I put the split files on my MP3 player and listen to them while exercising. AsfTools is a great program even for newbies so I've used it a lot, but it gets cumbersome to manually divide the recorded clip into 10-minute parts when it is hours long. So I decided to write a program of my own that suits my needs. Since Java is the only [fully powered] programming language I know (PHP and JavaScript don't count :( ), I did some research on multimedia programming in Java. Naturally, I paid attention to JMF, only to find that it doesn't support ASF (or WMA or WMV or many other formats). So I decided to develop my own library. So, here's my idea I came up with:

Using any file readers classes under java.io, I would look into the file's binary codes. I've been unsuccessful however. I even thought of looking at its hex codes, but I don't know if that will help. I just need to be able to customize asf files (or any type of files for that matter). Is it possible to edit files at binary level in Java? This is something I have never done. I have only written simple SWING/command prompt applications or done web projects using Tapestry. What I learned in AP Java in high school deals only with the basic syntax and search algorithms. I need practical advices. Thanks so much!