net.damf.console.comperation.fileHandle
Class Formatte

java.lang.Object
  extended by net.damf.console.comperation.fileHandle.Formatte
All Implemented Interfaces:
Comperation

public class Formatte
extends java.lang.Object
implements Comperation


Field Summary
private  char c
           
private  java.util.ArrayList c1
           
private  char cLastValid
           
private  boolean doWrite
           
private  boolean ignoreSemicolon
           
private  boolean ignoreSpace
           
private  boolean inited
           
private  char NEW_LINE
           
private  boolean onNewLine
           
private  java.io.BufferedReader reader
           
private  char SPACE
           
private  char TAB
           
private  int tabsOut
           
private  java.io.BufferedWriter writer
           
 
Constructor Summary
Formatte()
           
Formatte(java.lang.String file)
           
 
Method Summary
 int argumentsNeeded()
           
 Comperation giveFiles(java.lang.String[] files)
           
private  void handleClosedBracket()
           
private  void handleIgnoreSpace()
           
private  void handleNewLine(boolean forced)
           
private  void handleOpenBracket()
           
 boolean isInited()
           
 java.lang.String[] make(java.lang.String[] param)
           
 boolean perform()
           
private  void performWrite()
           
 boolean requiresCommand()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inited

private boolean inited

reader

private java.io.BufferedReader reader

writer

private java.io.BufferedWriter writer

c1

private java.util.ArrayList c1

tabsOut

private int tabsOut

onNewLine

private boolean onNewLine

ignoreSpace

private boolean ignoreSpace

ignoreSemicolon

private boolean ignoreSemicolon

doWrite

private boolean doWrite

cLastValid

private char cLastValid

c

private char c

NEW_LINE

private final char NEW_LINE
See Also:
Constant Field Values

SPACE

private final char SPACE
See Also:
Constant Field Values

TAB

private final char TAB
See Also:
Constant Field Values
Constructor Detail

Formatte

public Formatte()

Formatte

public Formatte(java.lang.String file)
         throws java.io.FileNotFoundException,
                java.io.IOException
Throws:
java.io.FileNotFoundException
java.io.IOException
Method Detail

requiresCommand

public final boolean requiresCommand()
Specified by:
requiresCommand in interface Comperation

argumentsNeeded

public final int argumentsNeeded()
Specified by:
argumentsNeeded in interface Comperation

make

public java.lang.String[] make(java.lang.String[] param)
                        throws java.io.IOException
Specified by:
make in interface Comperation
Throws:
java.io.IOException

giveFiles

public Comperation giveFiles(java.lang.String[] files)
                      throws java.io.IOException
Specified by:
giveFiles in interface Comperation
Throws:
java.io.IOException

isInited

public boolean isInited()
Specified by:
isInited in interface Comperation

perform

public boolean perform()
                throws java.io.IOException
Specified by:
perform in interface Comperation
Throws:
java.io.IOException

handleIgnoreSpace

private void handleIgnoreSpace()

handleNewLine

private void handleNewLine(boolean forced)

handleOpenBracket

private void handleOpenBracket()

handleClosedBracket

private void handleClosedBracket()

performWrite

private void performWrite()
                   throws java.io.IOException
Throws:
java.io.IOException