Class 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

    • Constructor Summary

      Constructors 
      Constructor Description
      TextFileFilter()
      Constructor for TextFileFilter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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