PIANOS.io
Class FortranWriter

java.lang.Object
  extended by PIANOS.io.FortranWriter

public class FortranWriter
extends java.lang.Object

FortranWriter, a class that receives lines of Fortran code, multilines and indents them correctly and writes them to a file.


Constructor Summary
FortranWriter(java.lang.String fileName)
          Creates a new FortranWriter.
 
Method Summary
 void write(java.util.ArrayList<java.lang.String> lines)
          Writes lines of Fortran source code into the file.
 void write(java.lang.String[] lines)
          Writes lines of Fortran source code into the file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FortranWriter

public FortranWriter(java.lang.String fileName)
Creates a new FortranWriter.

Parameters:
fileName - name of the file the Fortran source code will be written to
Method Detail

write

public void write(java.util.ArrayList<java.lang.String> lines)
           throws java.io.IOException
Writes lines of Fortran source code into the file.

Parameters:
lines - an ArrayList containing the lines to be written to the file
Throws:
java.io.IOException - If the file couldn't be written to

write

public void write(java.lang.String[] lines)
           throws java.io.IOException
Writes lines of Fortran source code into the file.

Parameters:
lines - an array containing the lines to be written to the file
Throws:
java.io.IOException - If the file couldn't be written to