com.dusbabek.lib.id3
Class FrameFactory

java.lang.Object
  extended by com.dusbabek.lib.id3.FrameFactory

public class FrameFactory
extends java.lang.Object

Factory class that creates all frames. Give it an input stream and a version and it takes care of the rest. Text and comment frames are automatically specialized.


Constructor Summary
FrameFactory()
           
 
Method Summary
static Frame makeFrame(java.io.InputStream in, int version)
          Create a frame.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameFactory

public FrameFactory()
Method Detail

makeFrame

public static Frame makeFrame(java.io.InputStream in,
                              int version)
                       throws java.io.IOException
Create a frame.

Parameters:
in - InputStream
version - int
Returns:
Frame, TextFrame or CommentFrame
Throws:
java.io.IOException


Copyright © 2004, 2005 Gary Dusbabek. All Rights Reserved.