com.meapsoft
Class MEAPFile

java.lang.Object
  extended bycom.meapsoft.MEAPFile
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
FeatFile

public abstract class MEAPFile
extends java.lang.Object
implements java.io.Serializable

Representation of a MEAPsoft file.

See Also:
Serialized Form

Field Summary
 java.lang.String filename
           
 boolean haveReadFile
           
 boolean haveWrittenFile
           
 
Constructor Summary
MEAPFile()
           
 
Method Summary
abstract  void readFile()
          Parse this MEAPFile.
 java.lang.String toString()
          Returns a String representing the properly formatted contents of this file
protected abstract  void write(java.io.Writer w)
          Write out properly formatted representation of this object
 void writeFile()
          Write the file represented by this object.
 void writeFile(java.lang.String fn)
          Write the file represented by this object.
 void writeFile(java.lang.String fn, boolean append)
          Write the file represented by this object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

filename

public java.lang.String filename

haveReadFile

public boolean haveReadFile

haveWrittenFile

public boolean haveWrittenFile
Constructor Detail

MEAPFile

public MEAPFile()
Method Detail

readFile

public abstract void readFile()
                       throws java.io.IOException,
                              ParserException
Parse this MEAPFile.

Throws:
java.io.IOException
ParserException

write

protected abstract void write(java.io.Writer w)
                       throws java.io.IOException
Write out properly formatted representation of this object

Throws:
java.io.IOException

writeFile

public void writeFile()
               throws java.io.IOException
Write the file represented by this object.

Throws:
java.io.IOException

writeFile

public void writeFile(java.lang.String fn)
               throws java.io.IOException
Write the file represented by this object.

Throws:
java.io.IOException

writeFile

public void writeFile(java.lang.String fn,
                      boolean append)
               throws java.io.IOException
Write the file represented by this object. If append is false, fn will be overwritten.

Throws:
java.io.IOException

toString

public java.lang.String toString()
Returns a String representing the properly formatted contents of this file