Constructor and Description |
---|
LoadOptions()
Initializes a new instance of the
LoadOptions class with empty Password , FileFormat equal to FileFormat.Unknown and default encodings. |
LoadOptions(FileFormat fileFormat)
Initializes a new instance of the
LoadOptions class with empty Password and default encodings. |
LoadOptions(FileFormat fileFormat,
String password)
Initializes a new instance of the
LoadOptions class with default encodings. |
LoadOptions(FileFormat fileFormat,
String password,
Charset charset,
Charset defaultAnsiCharset)
Initializes a new instance of the
LoadOptions class with custom encodings. |
LoadOptions(String password)
Initializes a new instance of the
LoadOptions class with FileFormat equal to FileFormat.Unknown and default encodings. |
Modifier and Type | Method and Description |
---|---|
Charset |
getCharset()
Gets the encoding of the document.
|
Charset |
getDefaultAnsiCharset()
Gets the default ANSI encoding which is used for encoding detection.
|
FileFormat |
getFileFormat()
Gets the file format.
|
String |
getPassword()
Gets the password.
|
public LoadOptions()
LoadOptions
class with empty Password
, FileFormat
equal to FileFormat.Unknown
and default encodings.public LoadOptions(String password)
LoadOptions
class with FileFormat
equal to FileFormat.Unknown
and default encodings.password
- The password to open the password-protected file.public LoadOptions(FileFormat fileFormat)
LoadOptions
class with empty Password
and default encodings.fileFormat
- The format of the file.public LoadOptions(FileFormat fileFormat, String password)
LoadOptions
class with default encodings.fileFormat
- The format of the file.password
- The password to open the password-protected file.public LoadOptions(FileFormat fileFormat, String password, Charset charset, Charset defaultAnsiCharset)
LoadOptions
class with custom encodings.fileFormat
- The format of the file.password
- The password to open the password-protected file.charset
- The encoding of the document.defaultAnsiCharset
- The default ANSI encoding which is used for encoding detection.public FileFormat getFileFormat()
FileFormat
enumeration that contains a file format.public String getPassword()
public Charset getCharset()
Charset
class that represents the document encoding; null
if it isn't set.public Charset getDefaultAnsiCharset()
Charset
class that represents the document encoding; null
if it isn't set.