lib.io
Class FractalReader

java.lang.Object
  extended by lib.io.FractalReader

public class FractalReader
extends java.lang.Object

Read a representation of the fractal model from the input stream

See Also:
DataInputStream

Constructor Summary
FractalReader(java.io.File compressedFile)
           
 
Method Summary
 void close()
          end the stream
 FractalModel read()
          Read a representation of the fractal model from the input stream
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FractalReader

public FractalReader(java.io.File compressedFile)
              throws java.io.FileNotFoundException,
                     java.io.IOException
Parameters:
compressedFile - the stream to read the fractal model from
Throws:
java.io.FileNotFoundException - if file doesn't exist
java.io.IOException
See Also:
DataInputStream
Method Detail

read

public FractalModel read()
                  throws java.lang.ClassNotFoundException,
                         java.io.IOException
Read a representation of the fractal model from the input stream

Returns:
the fractal model as read from the compressed file
Throws:
java.lang.ClassNotFoundException - if the compressed file is corrupt
java.io.IOException
See Also:
FractalModel

close

public void close()
           throws java.io.IOException
end the stream

Throws:
java.io.IOException