auditory.described
Class PartFactory

java.lang.Object
  extended by auditory.described.PartFactory

public class PartFactory
extends java.lang.Object

A factory that creates Part objects

See Also:
"The Design and Implementation of Multimedia Software © 2011"

Constructor Summary
PartFactory()
           
 
Method Summary
static Part createPart(java.io.BufferedReader in)
          Create a Part object from a BufferedReader that is reading a stream containing a string representation
static Part createPart(java.lang.String filename)
          Create a Part object from a file containing a String representation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PartFactory

public PartFactory()
Method Detail

createPart

public static Part createPart(java.io.BufferedReader in)
                       throws java.io.IOException
Create a Part object from a BufferedReader that is reading a stream containing a string representation

Parameters:
in - The BufferedReader
Throws:
java.io.IOException

createPart

public static Part createPart(java.lang.String filename)
                       throws java.io.IOException
Create a Part object from a file containing a String representation

Parameters:
filename - The name of the file
Throws:
java.io.IOException


Design and Implementation of Multimedia Software, Jones and Bartlett Publishers