public enum ParseState extends Enum<ParseState>
Act as a flag indicating if a document has been parsed or not in a given process flow.
Typically, a pre-parsed document still has its original format (HTML, PDF, etc.). A post-parsed document on the other hand, usually has its plain text extracted and all formating is gone. Pre-parsed documents can be in binary format while post-parsed onces are in text-format (unless parsing was explicitely disabled).
Modifier and Type | Method and Description |
---|---|
boolean |
isPost() |
static boolean |
isPost(ParseState parseState) |
boolean |
isPre() |
static boolean |
isPre(ParseState parseState) |
static ParseState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ParseState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ParseState PRE
public static final ParseState POST
public static ParseState[] values()
for (ParseState c : ParseState.values()) System.out.println(c);
public static ParseState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isPre()
public boolean isPost()
public static boolean isPre(ParseState parseState)
public static boolean isPost(ParseState parseState)
Copyright © 2009–2023 Norconex Inc.. All rights reserved.