fileconvert
Class WriteNFF

java.lang.Object
  |
  +--fileconvert.WriteNFF

public class WriteNFF
extends java.lang.Object

This class writes a NFF file


Constructor Summary
WriteNFF()
          Creates new WriteNFF
WriteNFF(Info3d info, java.lang.String fname)
          Creates a new Write NFF and Writes the file
 
Method Summary
 void setInfo3d(Info3d info)
          sets 3d info
 boolean write(Info3d info, java.lang.String fname)
          Writes the NFF File
 boolean write(java.lang.String fname)
          Writes a NFF file(info must be set before writing)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteNFF

public WriteNFF()
Creates new WriteNFF

WriteNFF

public WriteNFF(Info3d info,
                java.lang.String fname)
         throws java.io.IOException
Creates a new Write NFF and Writes the file
Parameters:
info - the 3d info to be written
fname - the name of the file to be written
Throws:
java.io.IOException - throws IOException
Method Detail

setInfo3d

public void setInfo3d(Info3d info)
sets 3d info
Parameters:
info - The variable containing all the 3d info

write

public boolean write(Info3d info,
                     java.lang.String fname)
              throws java.io.IOException
Writes the NFF File
Parameters:
info - The 3d info to be written
fname - The path of the file
Returns:
Returns a boolean stating whether it was successful or not
Throws:
java.io.IOException - throws IOException

write

public boolean write(java.lang.String fname)
              throws java.io.IOException
Writes a NFF file(info must be set before writing)
Parameters:
fname - The path of the file to be written
Returns:
Returns a boolean stating whether it was successful or not
Throws:
java.io.IOException - throws IOException