public abstract class AbstractLocalOfficeTask extends org.jodconverter.core.task.AbstractOfficeTask implements PasswordProtectedExceptionSupportTask
OfficeTask| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
loadProperties |
protected boolean |
useStreamAdapters |
| Constructor and Description |
|---|
AbstractLocalOfficeTask(@NonNull org.jodconverter.core.job.SourceDocumentSpecs source)
Creates a new task with the specified source document.
|
AbstractLocalOfficeTask(@NonNull org.jodconverter.core.job.SourceDocumentSpecs source,
boolean useStreamAdapters)
Creates a new task with the specified source document.
|
AbstractLocalOfficeTask(@NonNull org.jodconverter.core.job.SourceDocumentSpecs source,
boolean useStreamAdapters,
@Nullable java.util.Map<java.lang.String,java.lang.Object> loadProperties)
Creates a new task with the specified source document.
|
| Modifier and Type | Method and Description |
|---|---|
protected static void |
appendProperties(@NonNull java.util.Map<java.lang.String,java.lang.Object> properties,
@Nullable java.util.Map<java.lang.String,java.lang.Object> toAddProperties) |
protected void |
closeDocument(@Nullable com.sun.star.lang.XComponent document) |
protected @NonNull java.util.Map<java.lang.String,java.lang.Object> |
getLoadProperties() |
boolean |
hasPasswordInteractionRequest()
Gets whether a password interaction request has been made.
|
protected @NonNull com.sun.star.lang.XComponent |
loadDocument(@NonNull LocalOfficeContext context,
@NonNull java.io.File sourceFile) |
@NonNull java.lang.String |
toString() |
protected final java.util.Map<java.lang.String,java.lang.Object> loadProperties
protected final boolean useStreamAdapters
public AbstractLocalOfficeTask(@NonNull org.jodconverter.core.job.SourceDocumentSpecs source)
source - The source specifications of the document.public AbstractLocalOfficeTask(@NonNull org.jodconverter.core.job.SourceDocumentSpecs source,
boolean useStreamAdapters)
source - The source specifications of the document.useStreamAdapters - Indicates whether document are loaded/stored using stream adapters.public AbstractLocalOfficeTask(@NonNull org.jodconverter.core.job.SourceDocumentSpecs source,
boolean useStreamAdapters,
@Nullable java.util.Map<java.lang.String,java.lang.Object> loadProperties)
source - The source specifications of the document.useStreamAdapters - Indicates whether document are loaded/stored using stream adapters.loadProperties - The load properties to be applied when loading the document. These
properties are added before the load properties of the document format specified in the
source arguments.protected static void appendProperties(@NonNull java.util.Map<java.lang.String,java.lang.Object> properties,
@Nullable java.util.Map<java.lang.String,java.lang.Object> toAddProperties)
protected @NonNull java.util.Map<java.lang.String,java.lang.Object> getLoadProperties()
protected @NonNull com.sun.star.lang.XComponent loadDocument(@NonNull LocalOfficeContext context, @NonNull java.io.File sourceFile) throws org.jodconverter.core.office.OfficeException
org.jodconverter.core.office.OfficeExceptionprotected void closeDocument(@Nullable com.sun.star.lang.XComponent document)
public boolean hasPasswordInteractionRequest()
PasswordProtectedExceptionSupportTaskhasPasswordInteractionRequest in interface PasswordProtectedExceptionSupportTasktrue if a password interaction request was made, false otherwise.public @NonNull java.lang.String toString()
toString in class org.jodconverter.core.task.AbstractOfficeTaskCopyright © 2022 - present; JODConverter. All rights reserved.