com.crocus.examples.csv
Class CSVFileImpl

java.lang.Object
  extended by java.io.File
      extended by com.crocus.examples.csv.CSVFileImpl
All Implemented Interfaces:
CSVFile, Serializable, Comparable<File>

public class CSVFileImpl
extends File
implements CSVFile

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.io.File
pathSeparator, pathSeparatorChar, separator, separatorChar
 
Constructor Summary
CSVFileImpl(String fileName, char deliminator)
          Get the File from the path mentioned in String
CSVFileImpl(String fileName, char deliminator, AbstractCSVRecordManager csvRecordManager)
          Get the File from the path mentioned in String
 
Method Summary
 AbstractCSVRecordManager getCSVRecordManager()
           
 char getDeliminator()
           
 boolean isLocked()
          Check the lock for the file
 void openFile()
           
 void write()
           
 
Methods inherited from class java.io.File
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, equals, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toString, toURI, toURL
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CSVFileImpl

public CSVFileImpl(String fileName,
                   char deliminator)
            throws FileNotFoundException
Get the File from the path mentioned in String

Parameters:
fileName - String
Throws:
FileNotFoundException

CSVFileImpl

public CSVFileImpl(String fileName,
                   char deliminator,
                   AbstractCSVRecordManager csvRecordManager)
            throws FileNotFoundException
Get the File from the path mentioned in String

Parameters:
fileName - String
csvRecordManager - CSVRecordManager
Throws:
FileNotFoundException
Method Detail

openFile

public void openFile()
              throws FileNotFoundException
Specified by:
openFile in interface CSVFile
Throws:
FileNotFoundException

write

public void write()
           throws IOException
Specified by:
write in interface CSVFile
Throws:
IOException

isLocked

public boolean isLocked()
Check the lock for the file

Returns:
boolean

getCSVRecordManager

public AbstractCSVRecordManager getCSVRecordManager()
Specified by:
getCSVRecordManager in interface CSVFile

getDeliminator

public char getDeliminator()
Specified by:
getDeliminator in interface CSVFile

Crocus - The First Flower of Spring