com.webcodepro.applecommander.storage.filters
Class TextFileFilter

java.lang.Object
  extended by com.webcodepro.applecommander.storage.filters.TextFileFilter
All Implemented Interfaces:
FileFilter

public class TextFileFilter
extends java.lang.Object
implements FileFilter

Filter the given file data for text.

Date created: Nov 2, 2002 9:11:27 PM

Author:
Rob Greene

Constructor Summary
TextFileFilter()
          Constructor for TextFileFilter.
 
Method Summary
 byte[] filter(FileEntry fileEntry)
          Process the given FileEntry and return a byte array with filtered data; use PrintWriter to get platform agnostic line endings.
 java.lang.String getSuggestedFileName(FileEntry fileEntry)
          Give suggested file name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextFileFilter

public TextFileFilter()
Constructor for TextFileFilter.

Method Detail

filter

public byte[] filter(FileEntry fileEntry)
Process the given FileEntry and return a byte array with filtered data; use PrintWriter to get platform agnostic line endings.

Specified by:
filter in interface FileFilter

getSuggestedFileName

public java.lang.String getSuggestedFileName(FileEntry fileEntry)
Give suggested file name.

Specified by:
getSuggestedFileName in interface FileFilter