com.armatiek.infofuze.stream.filesystem.csv
Class CSVFile

java.lang.Object
  extended by com.armatiek.infofuze.stream.filesystem.AbstractFile
      extended by com.armatiek.infofuze.stream.filesystem.ProxyFile
          extended by com.armatiek.infofuze.stream.filesystem.csv.CSVFile
All Implemented Interfaces:
FileIf

public class CSVFile
extends ProxyFile

A CSV (comma separated values) file.

Author:
Maarten Kroon

Constructor Summary
CSVFile(FileIf proxy, CSVFileExtractor extractor)
           
 
Method Summary
 java.io.InputStream getInputStream()
          Returns the contents of the file as a byte stream.
 
Methods inherited from class com.armatiek.infofuze.stream.filesystem.ProxyFile
canRead, exists, getMimeType, getName, getParent, getParentFile, getPath, hasContent, isDirectory, isFile, isHidden, lastModified, length, listFiles
 
Methods inherited from class com.armatiek.infofuze.stream.filesystem.AbstractFile
getCharacterEncoding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.armatiek.infofuze.stream.filesystem.FileIf
equals
 

Constructor Detail

CSVFile

public CSVFile(FileIf proxy,
               CSVFileExtractor extractor)
Method Detail

getInputStream

public java.io.InputStream getInputStream()
                                   throws java.io.IOException
Description copied from interface: FileIf
Returns the contents of the file as a byte stream.

Specified by:
getInputStream in interface FileIf
Overrides:
getInputStream in class ProxyFile
Returns:
an InputStream providing the contents of the file as a stream of bytes.
Throws:
java.io.IOException