-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
yevgen-nykytenko
committed
Apr 20, 2023
1 parent
0c9bf39
commit f422bb2
Showing
45 changed files
with
312 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
english/java/com.groupdocs.viewer.exception/archivesecurityexception/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
--- | ||
title: ArchiveSecurityException | ||
second_title: GroupDocs.Viewer for Java API Reference | ||
description: The exception that is thrown when archive that is being opened exceeds any of the limits specified in com.groupdocs.viewer.options.ArchiveSecurityOptions. | ||
type: docs | ||
weight: 10 | ||
url: /java/com.groupdocs.viewer.exception/archivesecurityexception/ | ||
--- | ||
**Inheritance:** | ||
java.lang.Object, java.lang.Throwable, java.lang.Exception, java.lang.RuntimeException, com.aspose.ms.System.Exception, com.groupdocs.foundation.exception.GroupDocsException, [com.groupdocs.viewer.exception.GroupDocsViewerException](../../com.groupdocs.viewer.exception/groupdocsviewerexception) | ||
``` | ||
public class ArchiveSecurityException extends GroupDocsViewerException | ||
``` | ||
|
||
The exception that is thrown when archive that is being opened exceeds any of the limits specified in com.groupdocs.viewer.options.ArchiveSecurityOptions. | ||
## Constructors | ||
|
||
| Constructor | Description | | ||
| --- | --- | | ||
| [ArchiveSecurityException(String message)](#ArchiveSecurityException-java.lang.String-) | Creates an instance of an exception. | | ||
### ArchiveSecurityException(String message) {#ArchiveSecurityException-java.lang.String-} | ||
``` | ||
public ArchiveSecurityException(String message) | ||
``` | ||
|
||
|
||
Creates an instance of an exception. | ||
|
||
**Parameters:** | ||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| message | java.lang.String | The message. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
132 changes: 132 additions & 0 deletions
132
english/java/com.groupdocs.viewer.options/archivesecurityoptions/_index.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
--- | ||
title: ArchiveSecurityOptions | ||
second_title: GroupDocs.Viewer for Java API Reference | ||
description: Class that can be used to limit archives extraction process. | ||
type: docs | ||
weight: 11 | ||
url: /java/com.groupdocs.viewer.options/archivesecurityoptions/ | ||
--- | ||
**Inheritance:** | ||
java.lang.Object | ||
``` | ||
public class ArchiveSecurityOptions | ||
``` | ||
|
||
Class that can be used to limit archives extraction process. | ||
|
||
Note: Not each archive type supports all options. | ||
## Constructors | ||
|
||
| Constructor | Description | | ||
| --- | --- | | ||
| [ArchiveSecurityOptions()](#ArchiveSecurityOptions--) | | | ||
## Methods | ||
|
||
| Method | Description | | ||
| --- | --- | | ||
| [getMaxAllowedEntryNameLength()](#getMaxAllowedEntryNameLength--) | Archive entry name length can not be more than specified in this option. | | ||
| [setMaxAllowedEntryNameLength(int maxAllowedEntryNameLength)](#setMaxAllowedEntryNameLength-int-) | Archive entry name length can not be more than specified in this option. | | ||
| [getMaxAllowedEntrySize()](#getMaxAllowedEntrySize--) | Archive entry size can not be more than specified in this option. | | ||
| [setMaxAllowedEntrySize(long maxAllowedEntrySize)](#setMaxAllowedEntrySize-long-) | Archive entry size can not be more than specified in this option. | | ||
| [getMaxAllowedEntriesCount()](#getMaxAllowedEntriesCount--) | Archive that contains more entries, than specified in this option can not be extracted. | | ||
| [setMaxAllowedEntriesCount(long maxAllowedEntriesCount)](#setMaxAllowedEntriesCount-long-) | Archive that contains more entries, than specified in this option can not be extracted. | | ||
| [getMaxAllowedEntryCompressionRatio()](#getMaxAllowedEntryCompressionRatio--) | Archive entries which compression ratio is more, than specified in this option can not be extracted. | | ||
| [setMaxAllowedEntryCompressionRatio(double maxAllowedEntryCompressionRatio)](#setMaxAllowedEntryCompressionRatio-double-) | Archive entries which compression ratio is more, than specified in this option can not be extracted. | | ||
### ArchiveSecurityOptions() {#ArchiveSecurityOptions--} | ||
``` | ||
public ArchiveSecurityOptions() | ||
``` | ||
|
||
|
||
### getMaxAllowedEntryNameLength() {#getMaxAllowedEntryNameLength--} | ||
``` | ||
public int getMaxAllowedEntryNameLength() | ||
``` | ||
|
||
|
||
Archive entry name length can not be more than specified in this option. Default value is 255. | ||
|
||
**Returns:** | ||
int - Maximum archive entry name length | ||
### setMaxAllowedEntryNameLength(int maxAllowedEntryNameLength) {#setMaxAllowedEntryNameLength-int-} | ||
``` | ||
public void setMaxAllowedEntryNameLength(int maxAllowedEntryNameLength) | ||
``` | ||
|
||
|
||
Archive entry name length can not be more than specified in this option. Default value is 255. | ||
|
||
**Parameters:** | ||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| maxAllowedEntryNameLength | int | Maximum archive entry name length. | | ||
|
||
### getMaxAllowedEntrySize() {#getMaxAllowedEntrySize--} | ||
``` | ||
public long getMaxAllowedEntrySize() | ||
``` | ||
|
||
|
||
Archive entry size can not be more than specified in this option. Default value is 10Gb (10737418240L). | ||
|
||
**Returns:** | ||
long - Maximum archive entry size. | ||
### setMaxAllowedEntrySize(long maxAllowedEntrySize) {#setMaxAllowedEntrySize-long-} | ||
``` | ||
public void setMaxAllowedEntrySize(long maxAllowedEntrySize) | ||
``` | ||
|
||
|
||
Archive entry size can not be more than specified in this option. Default value is 10Gb (10737418240L). | ||
|
||
**Parameters:** | ||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| maxAllowedEntrySize | long | Maximum archive entry size | | ||
|
||
### getMaxAllowedEntriesCount() {#getMaxAllowedEntriesCount--} | ||
``` | ||
public long getMaxAllowedEntriesCount() | ||
``` | ||
|
||
|
||
Archive that contains more entries, than specified in this option can not be extracted. Default value is 1000. | ||
|
||
**Returns:** | ||
long - Maximum count of entries in an archive. | ||
### setMaxAllowedEntriesCount(long maxAllowedEntriesCount) {#setMaxAllowedEntriesCount-long-} | ||
``` | ||
public void setMaxAllowedEntriesCount(long maxAllowedEntriesCount) | ||
``` | ||
|
||
|
||
Archive that contains more entries, than specified in this option can not be extracted. Default value is 1000. | ||
|
||
**Parameters:** | ||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| maxAllowedEntriesCount | long | Maximum count of entries in an archive. | | ||
|
||
### getMaxAllowedEntryCompressionRatio() {#getMaxAllowedEntryCompressionRatio--} | ||
``` | ||
public double getMaxAllowedEntryCompressionRatio() | ||
``` | ||
|
||
|
||
Archive entries which compression ratio is more, than specified in this option can not be extracted. Default value is 100. | ||
|
||
**Returns:** | ||
double - Maximum allowed entries compression ratio. | ||
### setMaxAllowedEntryCompressionRatio(double maxAllowedEntryCompressionRatio) {#setMaxAllowedEntryCompressionRatio-double-} | ||
``` | ||
public void setMaxAllowedEntryCompressionRatio(double maxAllowedEntryCompressionRatio) | ||
``` | ||
|
||
|
||
Archive entries which compression ratio is more, than specified in this option can not be extracted. Default value is 100. | ||
|
||
**Parameters:** | ||
| Parameter | Type | Description | | ||
| --- | --- | --- | | ||
| maxAllowedEntryCompressionRatio | double | Maximum allowed entries compression ratio. | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.