public final class AppLoadDocument extends Object
This class is thread-safe.
Modifier and Type | Method and Description |
---|---|
static void |
beforeEdit(Tree tree,
Inclusion[] firstInclusion)
Use this before the document is edited to perform various tasks
on this document.
|
static void |
configure(Document doc,
URL docURL,
Configuration config,
CommandEnv env) |
static Configuration |
getDetectedConfiguration(AppDocumentTypeDetector.Context context) |
static Document |
load(InputSource source,
CommandEnv env,
Configuration[] detectedConfig) |
static Document |
load(URL url,
CommandEnv env,
Configuration[] detectedConfig) |
static void |
readyToEdit(Document doc,
Object listener,
CommandEnv env) |
static void |
resetDetectionContext() |
static AppDocumentTypeDetector.Context |
setDetectionContext(CommandEnv env) |
public static Document load(URL url, CommandEnv env, Configuration[] detectedConfig)
public static Document load(InputSource source, CommandEnv env, Configuration[] detectedConfig)
public static AppDocumentTypeDetector.Context setDetectionContext(CommandEnv env)
public static void resetDetectionContext()
public static Configuration getDetectedConfiguration(AppDocumentTypeDetector.Context context)
public static void configure(Document doc, URL docURL, Configuration config, CommandEnv env)
public static void readyToEdit(Document doc, Object listener, CommandEnv env)
public static final void beforeEdit(Tree tree, Inclusion[] firstInclusion)
It does the following:
<?xxe-remark?>
PIs.
tree
- the document to be scanned.firstInclusion
- first found inclusion is stored there.
May be null