Class AppleWorksDataBaseFileFilter
- java.lang.Object
-
- com.webcodepro.applecommander.storage.filters.AppleWorksDataBaseFileFilter
-
- All Implemented Interfaces:
FileFilter
public class AppleWorksDataBaseFileFilter extends java.lang.Object implements FileFilter
Export an AppleWorks database file to a text file. Current export is limited to a standard comma-separated file (CSV) file format which should be suitable to load into a database or a spreadsheet.Data base files start with a variable length header, followed by 600 bytes for each report format (if any), the standard values record, then variable length information for each record. Note that the first data record contains the standard (presumably default) values. The category entries are in the same order that the category names appear in the header record.
See: http://www.gno.org/pub/apple2/doc/apple/filetypes/ftn.19.xxxx
Date Created: February 15, 2003
-
-
Constructor Summary
Constructors Constructor Description AppleWorksDataBaseFileFilter()Create an AppleWorksDataBaseFileFilter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidconvertDate(java.io.PrintWriter printWriter, java.lang.String date)Convert the date entry.protected voidconvertTime(java.io.PrintWriter printWriter, java.lang.String time)Convert the time entry.byte[]filter(FileEntry fileEntry)Process the given FileEntry and return a byte array with filtered data.java.lang.StringgetSuggestedFileName(FileEntry fileEntry)Give suggested file name.
-
-
-
Method Detail
-
filter
public byte[] filter(FileEntry fileEntry)
Process the given FileEntry and return a byte array with filtered data.- Specified by:
filterin interfaceFileFilter- See Also:
FileFilter.filter(FileEntry)
-
getSuggestedFileName
public java.lang.String getSuggestedFileName(FileEntry fileEntry)
Give suggested file name.- Specified by:
getSuggestedFileNamein interfaceFileFilter- See Also:
FileFilter.getSuggestedFileName(FileEntry)
-
convertDate
protected void convertDate(java.io.PrintWriter printWriter, java.lang.String date)Convert the date entry.
-
convertTime
protected void convertTime(java.io.PrintWriter printWriter, java.lang.String time)Convert the time entry.
-
-