Skip to content

Commit c2bf299

Browse files
Update file(s) from groupdocs-comparison/Groupdocs.Comparison-References [deploy-qa]
1 parent 03ece35 commit c2bf299

3 files changed

Lines changed: 151 additions & 0 deletions

File tree

  • content/sites/groupdocs/comparison/english/java
    • com.groupdocs.comparison.options.load/loadoptions
    • com.groupdocs.comparison.words.revision/revisionhandler
    • com.groupdocs.comparison/document

‎content/sites/groupdocs/comparison/english/java/com.groupdocs.comparison.options.load/loadoptions/_index.md‎

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ Example usage:
6666
|
6767
| [setFileType(FileType value)](#setFileType-com.groupdocs.comparison.result.FileType-) | Sets a type of a file that is loading.
6868
|
69+
| [isSkipExternalResources()](#isSkipExternalResources--) | Gets whether loading of external resources referenced by a document is disabled.
70+
|
71+
| [setSkipExternalResources(boolean value)](#setSkipExternalResources-boolean-) | Sets whether loading of external resources referenced by a document is disabled.
72+
|
73+
| [getWhitelistedResources()](#getWhitelistedResources--) | Gets the resources that are still loaded while #isSkipExternalResources().isSkipExternalResources() is on.
74+
|
75+
| [setWhitelistedResources(List<String> value)](#setWhitelistedResources-java.util.List-java.lang.String--) | Sets the resources that are still loaded while #isSkipExternalResources().isSkipExternalResources() is on.
76+
|
6977
### LoadOptions() {#LoadOptions--}
7078
```
7179
public LoadOptions()
@@ -245,3 +253,63 @@ Sets a type of a file that is loading.
245253
| value | [FileType](../../com.groupdocs.comparison.result/filetype) | The type of the file
246254
|
247255

256+
### isSkipExternalResources() {#isSkipExternalResources--}
257+
```
258+
public boolean isSkipExternalResources()
259+
```
260+
261+
262+
Gets whether loading of external resources referenced by a document is disabled.
263+
264+
265+
A document can point at resources outside itself, for example an image given by a remote
266+
URL. Loading those means the comparison reaches out to whatever address the document
267+
names, so it is off by default; #getWhitelistedResources().getWhitelistedResources() lets named resources
268+
through while it is on.
269+
270+
271+
**Returns:**
272+
boolean - true when external resources are not loaded, which is the default
273+
274+
### setSkipExternalResources(boolean value) {#setSkipExternalResources-boolean-}
275+
```
276+
public void setSkipExternalResources(boolean value)
277+
```
278+
279+
280+
Sets whether loading of external resources referenced by a document is disabled.
281+
282+
283+
**Parameters:**
284+
| Parameter | Type | Description |
285+
| --- | --- | --- |
286+
| value | boolean | true to leave external resources unloaded, false to allow them
287+
|
288+
289+
### getWhitelistedResources() {#getWhitelistedResources--}
290+
```
291+
public List<String> getWhitelistedResources()
292+
```
293+
294+
295+
Gets the resources that are still loaded while #isSkipExternalResources().isSkipExternalResources() is on.
296+
297+
298+
**Returns:**
299+
java.util.List<java.lang.String> - the URL fragments of the allowed resources
300+
301+
### setWhitelistedResources(List<String> value) {#setWhitelistedResources-java.util.List-java.lang.String--}
302+
```
303+
public void setWhitelistedResources(List<String> value)
304+
```
305+
306+
307+
Sets the resources that are still loaded while #isSkipExternalResources().isSkipExternalResources() is on.
308+
309+
310+
**Parameters:**
311+
| Parameter | Type | Description |
312+
| --- | --- | --- |
313+
| value | java.util.List<java.lang.String> | The URL fragments of the allowed resources
314+
|
315+

‎content/sites/groupdocs/comparison/english/java/com.groupdocs.comparison.words.revision/revisionhandler/_index.md‎

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ Example usage:
5454
|
5555
| [RevisionHandler(InputStream file, FileType fileType)](#RevisionHandler-java.io.InputStream-com.groupdocs.comparison.result.FileType-) | Initializes a new instance of the RevisionHandler class with a file stream containing revisions.
5656
|
57+
| [RevisionHandler(InputStream file, FileType fileType, boolean leaveOpen)](#RevisionHandler-java.io.InputStream-com.groupdocs.comparison.result.FileType-boolean-) | Initializes a new instance of the RevisionHandler class with a file stream containing revisions and explicit stream ownership.
58+
|
5759
| [RevisionHandler(Document document)](#RevisionHandler-com.aspose.words.Document-) | Initializes a new instance of the RevisionHandler class with a document.
5860
|
5961
## Fields
@@ -123,6 +125,25 @@ Initializes a new instance of the RevisionHandler class with a file stream conta
123125
| fileType | [FileType](../../com.groupdocs.comparison.result/filetype) | The type of the file.
124126
|
125127

128+
### RevisionHandler(InputStream file, FileType fileType, boolean leaveOpen) {#RevisionHandler-java.io.InputStream-com.groupdocs.comparison.result.FileType-boolean-}
129+
```
130+
public RevisionHandler(InputStream file, FileType fileType, boolean leaveOpen)
131+
```
132+
133+
134+
Initializes a new instance of the RevisionHandler class with a file stream containing revisions and explicit stream ownership.
135+
136+
137+
**Parameters:**
138+
| Parameter | Type | Description |
139+
| --- | --- | --- |
140+
| file | java.io.InputStream | The source document stream.
141+
|
142+
| fileType | [FileType](../../com.groupdocs.comparison.result/filetype) | The type of the file.
143+
|
144+
| leaveOpen | boolean | When true the caller keeps ownership of file and closes it itself; when false #close().close() closes it.
145+
|
146+
126147
### RevisionHandler(Document document) {#RevisionHandler-com.aspose.words.Document-}
127148
```
128149
public RevisionHandler(Document document)

‎content/sites/groupdocs/comparison/english/java/com.groupdocs.comparison/document/_index.md‎

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,14 @@ Example usage:
8282
|
8383
| [getPassword()](#getPassword--) | Gets the password of the document
8484
|
85+
| [isSkipExternalResources()](#isSkipExternalResources--) | Gets whether external resources referenced by this document are left unloaded.
86+
|
87+
| [setSkipExternalResources(boolean value)](#setSkipExternalResources-boolean-) | Sets whether external resources referenced by this document are left unloaded.
88+
|
89+
| [getWhitelistedResources()](#getWhitelistedResources--) | Gets the resources that are loaded even while external resources are skipped.
90+
|
91+
| [setWhitelistedResources(List<String> value)](#setWhitelistedResources-java.util.List-java.lang.String--) | Sets the resources that are loaded even while external resources are skipped.
92+
|
8593
| [generatePreview(PreviewOptions previewOptions)](#generatePreview-com.groupdocs.comparison.options.PreviewOptions-) | Generates document previews based on the provided [PreviewOptions](../../com.groupdocs.comparison.options/previewoptions).
8694
|
8795
| [getDocumentInfo()](#getDocumentInfo--) | Gets information about the document, including document type, page count, page sizes, and more.
@@ -378,6 +386,60 @@ Gets the password of the document
378386
**Returns:**
379387
java.lang.String - the password of the document
380388

389+
### isSkipExternalResources() {#isSkipExternalResources--}
390+
```
391+
public boolean isSkipExternalResources()
392+
```
393+
394+
395+
Gets whether external resources referenced by this document are left unloaded.
396+
397+
398+
**Returns:**
399+
boolean - true when they are skipped, which is the default
400+
401+
### setSkipExternalResources(boolean value) {#setSkipExternalResources-boolean-}
402+
```
403+
public void setSkipExternalResources(boolean value)
404+
```
405+
406+
407+
Sets whether external resources referenced by this document are left unloaded.
408+
409+
410+
**Parameters:**
411+
| Parameter | Type | Description |
412+
| --- | --- | --- |
413+
| value | boolean | true to skip them
414+
|
415+
416+
### getWhitelistedResources() {#getWhitelistedResources--}
417+
```
418+
public List<String> getWhitelistedResources()
419+
```
420+
421+
422+
Gets the resources that are loaded even while external resources are skipped.
423+
424+
425+
**Returns:**
426+
java.util.List<java.lang.String> - the URL fragments of the allowed resources
427+
428+
### setWhitelistedResources(List<String> value) {#setWhitelistedResources-java.util.List-java.lang.String--}
429+
```
430+
public void setWhitelistedResources(List<String> value)
431+
```
432+
433+
434+
Sets the resources that are loaded even while external resources are skipped.
435+
436+
437+
**Parameters:**
438+
| Parameter | Type | Description |
439+
| --- | --- | --- |
440+
| value | java.util.List<java.lang.String> | The URL fragments of the allowed resources
441+
|
442+
381443
### generatePreview(PreviewOptions previewOptions) {#generatePreview-com.groupdocs.comparison.options.PreviewOptions-}
382444
```
383445
public final void generatePreview(PreviewOptions previewOptions)

0 commit comments

Comments
 (0)