com.partnersoft.io.formats.packrat
Class PackratFileBuilder

java.lang.Object
  extended by com.partnersoft.io.formats.packrat.PackratFileBuilder
Direct Known Subclasses:
IncrementalPackratFileBuilder

public class PackratFileBuilder
extends java.lang.Object

Builds a packrat file. Duh.

Author:
Paul Reavis Copyright 2002 Partner Software, Inc.

Field Summary
protected  java.lang.String comment
           
protected  java.io.File file
           
protected  java.io.FileOutputStream outie
           
protected static java.lang.String PADDING
           
protected  PackratDatatype rootDatatype
           
protected  boolean wroteHeader
           
 
Constructor Summary
PackratFileBuilder(java.io.File file, PackratDatatype rootDatatype)
           
 
Method Summary
 java.lang.String getComment()
           
 void setComment(java.lang.String newComment)
           
 int writeHeader()
           
 void writeObject(java.lang.Object victim)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PADDING

protected static final java.lang.String PADDING
See Also:
Constant Field Values

rootDatatype

protected PackratDatatype rootDatatype

file

protected java.io.File file

comment

protected java.lang.String comment

outie

protected transient java.io.FileOutputStream outie

wroteHeader

protected transient boolean wroteHeader
Constructor Detail

PackratFileBuilder

public PackratFileBuilder(java.io.File file,
                          PackratDatatype rootDatatype)
                   throws java.io.IOException
Throws:
java.io.IOException
Method Detail

writeHeader

public int writeHeader()
                throws java.io.IOException
Throws:
java.io.IOException

writeObject

public void writeObject(java.lang.Object victim)
                 throws java.io.IOException
Throws:
java.io.IOException

getComment

public java.lang.String getComment()

setComment

public void setComment(java.lang.String newComment)