anderix.io
Class TextFile

java.lang.Object
  extended by anderix.io.TextFile

public class TextFile
extends java.lang.Object


Constructor Summary
TextFile(java.io.File file)
           
TextFile(java.lang.String filename)
           
 
Method Summary
 void append(java.lang.String str)
           
 void appendEcho(java.lang.String str)
           
 void appendln(java.lang.String str)
           
 void appendlnEcho(java.lang.String str)
           
 java.lang.String read()
           
 java.lang.String[] readln()
           
 java.util.HashMap readNameValuePairs()
           
 void removeCRLF()
           
 void replaceAll(java.lang.String regex, java.lang.String replacement)
           
 java.io.File toFile()
           
 void write(java.lang.String str)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFile

public TextFile(java.lang.String filename)

TextFile

public TextFile(java.io.File file)
Method Detail

read

public java.lang.String read()
                      throws java.io.IOException
Throws:
java.io.IOException

readln

public java.lang.String[] readln()
                          throws java.io.IOException
Throws:
java.io.IOException

readNameValuePairs

public java.util.HashMap readNameValuePairs()
                                     throws java.io.IOException
Throws:
java.io.IOException

write

public void write(java.lang.String str)
           throws java.io.IOException
Throws:
java.io.IOException

append

public void append(java.lang.String str)
            throws java.io.IOException
Throws:
java.io.IOException

appendEcho

public void appendEcho(java.lang.String str)
                throws java.io.IOException
Throws:
java.io.IOException

appendln

public void appendln(java.lang.String str)
              throws java.io.IOException
Throws:
java.io.IOException

appendlnEcho

public void appendlnEcho(java.lang.String str)
                  throws java.io.IOException
Throws:
java.io.IOException

toFile

public java.io.File toFile()

removeCRLF

public void removeCRLF()
                throws java.io.IOException
Throws:
java.io.IOException

replaceAll

public void replaceAll(java.lang.String regex,
                       java.lang.String replacement)
                throws java.io.IOException
Throws:
java.io.IOException