| Modifier and Type | Field and Description |
|---|---|
static int |
CW_AFTNSEP |
static int |
CW_AFTNSEPC |
static int |
CW_ANNOTATION |
static int |
CW_ANSI |
static int |
CW_ANSICPG |
static int |
CW_BKMKEND |
static int |
CW_BKMKSTART |
static int |
CW_BULLET |
static int |
CW_CCHS |
static int |
CW_CELL |
static int |
CW_COLORTBL |
static int |
CW_CPG |
static int |
CW_CS |
static int |
CW_DELETED |
static int |
CW_EMDASH |
static int |
CW_ENDASH |
static int |
CW_F |
static int |
CW_FCHARSET |
static int |
CW_FLDINST |
static int |
CW_FONTTBL |
static int |
CW_FOOTNOTE |
static int |
CW_FTNSEP |
static int |
CW_FTNSEPC |
static int |
CW_INDEXSEP |
static int |
CW_INFO |
static int |
CW_LDBLQUOTE |
static int |
CW_LINE |
static int |
CW_LQUOTE |
static int |
CW_LTRMARK |
static int |
CW_MAC |
static int |
CW_NONSHPPICT |
static int |
CW_PAGE |
static int |
CW_PAR |
static int |
CW_PARD |
static int |
CW_PC |
static int |
CW_PCA |
static int |
CW_PICT |
static int |
CW_PLAIN |
static int |
CW_RDBLQUOTE |
static int |
CW_ROW |
static int |
CW_RQUOTE |
static int |
CW_RTF |
static int |
CW_RTLMARK |
static int |
CW_SHPTXT |
static int |
CW_SPECIAL |
static int |
CW_STYLESHEET |
static int |
CW_TAB |
static int |
CW_TITLE |
static int |
CW_TROWD |
static int |
CW_U |
static int |
CW_UC |
static int |
CW_UL |
static int |
CW_ULDB |
static int |
CW_V |
static int |
CW_XE |
static int |
CW_XMLOPEN |
static int |
CW_ZWJ |
static int |
CW_ZWNJ |
static String |
PROP_HASHIDDENTEXT |
static int |
TOKEN_CHAR |
static int |
TOKEN_CTRLWORD |
static int |
TOKEN_ENDGROUP |
static int |
TOKEN_ENDINPUT |
static int |
TOKEN_STARTGROUP |
SUB_FILTER| Constructor and Description |
|---|
RTFFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel()
Cancels the current process.
|
void |
close()
Closes the input document.
|
IFilterWriter |
createFilterWriter()
Creates a new IFilterWriter object from the most appropriate class to
use with this filter.
|
ISkeletonWriter |
createSkeletonWriter()
Creates a new ISkeletonWriter object that corresponds to the type of skeleton
this filter uses.
|
List<FilterConfiguration> |
getConfigurations()
Gets the list of all predefined configurations for this filter.
|
String |
getDisplayName()
Gets the localizable display name of this filter.
|
EncoderManager |
getEncoderManager()
Gets the EncoderManager object for this filter.
|
String |
getMimeType()
Gets the MIME type of the format supported by this filter.
|
String |
getName()
Gets the name/identifier of this filter.
|
IParameters |
getParameters()
Gets the current parameters for this filter.
|
boolean |
getSegment(ITextUnit tu) |
int |
getTextUntil(StringBuilder text,
int cwCode,
int errorCwCode)
Gets the text content until a specified condition is reached.
|
boolean |
hasNext()
Indicates if there is an event to process.
|
Event |
next()
Gets the next event available.
|
void |
open(RawDocument input)
Opens the input document described in a give RawDocument object.
|
void |
open(RawDocument input,
boolean generateSkeleton)
Opens the input document described in a give RawDocument object, and
optionally creates skeleton information.
|
void |
parseNext() |
void |
setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)
Sets the filter configuration mapper for this filter.
|
void |
setParameters(IParameters params)
Sets new parameters for this filter.
|
void |
setStripWSBeforeTextStart(boolean value)
Set this option (for each input) to stripp any white spaces
before any text (e.g.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEachRemaining, removepublic static final String PROP_HASHIDDENTEXT
public static final int TOKEN_CHAR
public static final int TOKEN_STARTGROUP
public static final int TOKEN_ENDGROUP
public static final int TOKEN_ENDINPUT
public static final int TOKEN_CTRLWORD
public static final int CW_ANSI
public static final int CW_F
public static final int CW_U
public static final int CW_ANSICPG
public static final int CW_LQUOTE
public static final int CW_RQUOTE
public static final int CW_LDBLQUOTE
public static final int CW_RDBLQUOTE
public static final int CW_BULLET
public static final int CW_ENDASH
public static final int CW_EMDASH
public static final int CW_ZWJ
public static final int CW_ZWNJ
public static final int CW_LTRMARK
public static final int CW_RTLMARK
public static final int CW_UC
public static final int CW_CPG
public static final int CW_FONTTBL
public static final int CW_FCHARSET
public static final int CW_PAR
public static final int CW_PAGE
public static final int CW_STYLESHEET
public static final int CW_COLORTBL
public static final int CW_SPECIAL
public static final int CW_FOOTNOTE
public static final int CW_TAB
public static final int CW_V
public static final int CW_XE
public static final int CW_CCHS
public static final int CW_PICT
public static final int CW_SHPTXT
public static final int CW_LINE
public static final int CW_INDEXSEP
public static final int CW_ULDB
public static final int CW_TITLE
public static final int CW_TROWD
public static final int CW_CELL
public static final int CW_BKMKSTART
public static final int CW_ROW
public static final int CW_UL
public static final int CW_PARD
public static final int CW_NONSHPPICT
public static final int CW_INFO
public static final int CW_CS
public static final int CW_DELETED
public static final int CW_PLAIN
public static final int CW_BKMKEND
public static final int CW_ANNOTATION
public static final int CW_MAC
public static final int CW_PC
public static final int CW_PCA
public static final int CW_FTNSEP
public static final int CW_FTNSEPC
public static final int CW_AFTNSEP
public static final int CW_AFTNSEPC
public static final int CW_RTF
public static final int CW_FLDINST
public static final int CW_XMLOPEN
public void cancel()
IFilterpublic void close()
IFilterclose in interface AutoCloseableclose in interface IFilterpublic String getName()
IFilterpublic String getDisplayName()
IFiltergetDisplayName in interface IFilterpublic String getMimeType()
IFiltergetMimeType in interface IFilterpublic List<FilterConfiguration> getConfigurations()
IFiltergetConfigurations in interface IFilterpublic void setStripWSBeforeTextStart(boolean value)
value - true to strip, false to behave normally.public EncoderManager getEncoderManager()
IFiltergetEncoderManager in interface IFilterpublic IParameters getParameters()
IFiltergetParameters in interface IFilterpublic boolean hasNext()
IFilterImplementer Note: The caller must be able to call this method several times without changing state.
public Event next()
IFilterpublic void parseNext()
public void open(RawDocument input)
IFilterpublic void open(RawDocument input, boolean generateSkeleton)
IFilterpublic void setFilterConfigurationMapper(IFilterConfigurationMapper fcMapper)
IFiltersetFilterConfigurationMapper in interface IFilterfcMapper - the mapper to set.public void setParameters(IParameters params)
IFiltersetParameters in interface IFilterparams - The new parameters to use.public ISkeletonWriter createSkeletonWriter()
IFiltercreateSkeletonWriter in interface IFilterpublic IFilterWriter createFilterWriter()
IFiltercreateFilterWriter in interface IFilterpublic boolean getSegment(ITextUnit tu)
public int getTextUntil(StringBuilder text, int cwCode, int errorCwCode)
cwCode - the control word to stop on. Use -1 for either CW_PAR or CW_LINE.errorCwCode - the control word to stop on and return an error. Use 0 for none.Copyright © 2022. All rights reserved.