|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.webcodepro.applecommander.storage.filters.AppleWorksWordProcessorFileFilter
public class AppleWorksWordProcessorFileFilter
Extract the contents of an AWP (AppleWorks word processor) document and convert to a text format. Currently supported formats are plain text, HTML, or RTF. These are not exact duplicates, but they are close approximations. RTF format is suitable for conversion to other word processors.
To choose export format, use the appropriately named select method.
See AWP format documentation at: http://www.gno.org/pub/apple2/doc/apple/filetypes/ftn.1a.xxxx
Date created: Nov 15, 2002 3:55:21 PM
Constructor Summary | |
---|---|
AppleWorksWordProcessorFileFilter()
Constructor for AppleWorksWordProcessorFileFilter. |
Method Summary | |
---|---|
byte[] |
filter(FileEntry fileEntry)
Process the given FileEntry and return a byte array with filtered data. |
java.lang.String |
getSuggestedFileName(FileEntry fileEntry)
Give suggested file name. |
protected int |
handleCommandRecordAsHtml(int byte0,
int byte1,
java.io.PrintWriter printWriter,
int offset)
Deal with an individual command line record. |
protected int |
handleCommandRecordAsRtf(int byte0,
int byte1,
java.io.PrintWriter printWriter,
int offset)
Deal with an individual command line record. |
protected int |
handleCommandRecordAsText(int byte0,
int byte1,
java.io.PrintWriter printWriter,
int offset)
Deal with an individual command line record. |
protected void |
handleReturn(java.io.PrintWriter printWriter)
Deal with carriage-return. |
protected void |
handleSpecialCodesAsHtml(java.io.PrintWriter printWriter,
byte ch)
Process special coding of a text record. |
protected void |
handleSpecialCodesAsRtf(java.io.PrintWriter printWriter,
byte ch)
Process special coding of a text record. |
protected void |
handleSpecialCodesAsText(java.io.PrintWriter printWriter,
byte ch)
Process special coding of a text record. |
protected int |
handleTextRecord(byte[] fileData,
java.io.PrintWriter printWriter,
int offset)
Deal with an individual text record. |
boolean |
isHtmlRendering()
Indicates if this is an HTML rendering. |
boolean |
isRtfRendering()
Indicates if this is an RTF rendering. |
boolean |
isTextRendering()
Indicates if this is a text rendering. |
void |
selectHtmlRendering()
Selects the HTML rendering engine. |
void |
selectRtfRendering()
Selects the RTF rendering engine. |
void |
selectTextRendering()
Selects the text rendering engine. |
protected void |
setRendering(int rendering)
Set the rendering method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AppleWorksWordProcessorFileFilter()
Method Detail |
---|
public byte[] filter(FileEntry fileEntry)
filter
in interface FileFilter
FileFilter.filter(FileEntry)
protected int handleTextRecord(byte[] fileData, java.io.PrintWriter printWriter, int offset)
protected void handleReturn(java.io.PrintWriter printWriter)
protected void handleSpecialCodesAsHtml(java.io.PrintWriter printWriter, byte ch)
protected void handleSpecialCodesAsRtf(java.io.PrintWriter printWriter, byte ch)
protected void handleSpecialCodesAsText(java.io.PrintWriter printWriter, byte ch)
protected int handleCommandRecordAsHtml(int byte0, int byte1, java.io.PrintWriter printWriter, int offset)
protected int handleCommandRecordAsRtf(int byte0, int byte1, java.io.PrintWriter printWriter, int offset)
protected int handleCommandRecordAsText(int byte0, int byte1, java.io.PrintWriter printWriter, int offset)
public java.lang.String getSuggestedFileName(FileEntry fileEntry)
getSuggestedFileName
in interface FileFilter
FileFilter.getSuggestedFileName(FileEntry)
protected void setRendering(int rendering)
public boolean isTextRendering()
public boolean isHtmlRendering()
public boolean isRtfRendering()
public void selectTextRendering()
public void selectHtmlRendering()
public void selectRtfRendering()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |