project35.io
Class NativeFileFormatWriter

java.lang.Object
  extended by project35.io.NativeFileFormatWriter

public class NativeFileFormatWriter
extends java.lang.Object

$Id: NativeFileFormatWriter.java writes Project35 experiment files. These files are zip files that have a ".pdz" extension. A pdz file contains a ".pdr" file by the same name. This file contains the data.


Copyright (c) 2008 Kevin Garwood for Project35. The original code was developed by Kevin Garwood for the University of Manchester. Revisions have been made for Project35, a project that is independent of that institution. This code is licensed under the Academic Free License version 3.0. The code attribution for the original code is included here:

Copyright (c) Kevin Garwood and University of Manchester 2007. All rights reserved. Licensed under the Academic Free License version 3.0. For more information on the terms and conditions, please see the file "LICENSE" that is included in this distribution.


Version:
1.0
Author:
Kevin Garwood (kgarwood@users.sourceforge.net)

Constructor Summary
NativeFileFormatWriter(Project35FormContext project35FormContext)
           
 
Method Summary
 void initialiseCommentFacility(ModelObjectCommentRegistry modelObjectCommentRegistry, java.lang.Object userObject)
           
 void omitModelStamp()
          causes Project35 to ignore whether the model stamp used in the file matches the model stamp used by the application
 void setDocumentHeaderComment(java.lang.String documentHeaderComment)
          Set the value of documentHeaderComment.
 void writeFile(java.io.File file, RecordModel recordModel)
          assumes file will be of format "x.pdz"
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NativeFileFormatWriter

public NativeFileFormatWriter(Project35FormContext project35FormContext)
Method Detail

initialiseCommentFacility

public void initialiseCommentFacility(ModelObjectCommentRegistry modelObjectCommentRegistry,
                                      java.lang.Object userObject)

setDocumentHeaderComment

public void setDocumentHeaderComment(java.lang.String documentHeaderComment)
Set the value of documentHeaderComment.

Parameters:
documentHeaderComment - Value to assign to documentHeaderComment.

omitModelStamp

public void omitModelStamp()
causes Project35 to ignore whether the model stamp used in the file matches the model stamp used by the application


writeFile

public void writeFile(java.io.File file,
                      RecordModel recordModel)
               throws java.io.IOException
assumes file will be of format "x.pdz"

Throws:
java.io.IOException