2022-08-08 13:17:25 -04:00
# Class I2PFirefoxProfileChecker [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java)
2022-08-22 00:40:38 -04:00
> */
2022-08-08 13:17:25 -04:00
Access: public
2022-08-27 13:27:28 -04:00
Description:
> I2PFirefoxProfileChecker.java Copyright C 2022 idk <hankhill19580@gmail.com> This program is free software: you can redistribute it and/or modify it under the terms of the MIT License. See LICENSE.md for details. This program is distributed in the hope that it will be useful but WITHOUT ANY WARRANTY without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. I2PFirefoxProfileChecker is a that checks if the Firefox profile directory exists and is valid.
Author: idk
2022-08-08 13:17:25 -04:00
package: net.i2p.i2pfirefox
## Dependencies
< details >
< summary >
Show dependencies
< / summary >
< ul >
2022-09-02 18:34:40 -04:00
< li > java.io.BufferedReader< / li >
2022-08-08 13:17:25 -04:00
< li > java.io.File< / li >
2022-09-02 18:34:40 -04:00
< li > java.io.FileReader< / li >
< li > java.io.FileWriter< / li >
< li > java.io.IOException< / li >
2022-08-08 13:17:25 -04:00
< / ul >
< / details >
## No member variables in this class
## Methods
2022-09-02 18:34:40 -04:00
### main [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L30)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: public
+ Modifiers: static
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| args | String[] | |
2022-09-02 18:34:40 -04:00
### validateProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L51)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Return true if the profile directory is valid.
2022-08-08 13:17:25 -04:00
+ Access: public
+ Modifiers: static
2022-08-27 13:27:28 -04:00
+ return: true if the profile directory is valid false otherwise
2022-08-08 13:17:25 -04:00
| Name | Type | Description |
| ----- | ----- | ----- |
2022-08-27 13:27:28 -04:00
| profileDirectory | String | the profile directory to check |
2022-08-08 13:17:25 -04:00
2022-09-02 18:34:40 -04:00
### deRestrictHTTPS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L84)
+ Description:
+ Access: private
+ Modifiers: static
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| profile | String | |
### undoHttpsOnlyMode [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L104)
+ Description:
+ Access: private
+ Modifiers: static
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| fileToBeModified | File | |
### validateFile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L140)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Return true if the file is valid.
2022-08-08 13:17:25 -04:00
+ Access: public
+ Modifiers: static
2022-08-27 13:27:28 -04:00
+ return: true if the file is valid false otherwise
2022-08-08 13:17:25 -04:00
| Name | Type | Description |
| ----- | ----- | ----- |
2022-08-27 13:27:28 -04:00
| file | String | the file to check |
2022-08-08 13:17:25 -04:00
2022-09-02 18:34:40 -04:00
### validateExtensionDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileChecker.java#L167)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Return true if the extension directory is valid.
2022-08-08 13:17:25 -04:00
+ Access: public
+ Modifiers: static
2022-08-27 13:27:28 -04:00
+ return: true if the extension directory is valid false otherwise
2022-08-08 13:17:25 -04:00
| Name | Type | Description |
| ----- | ----- | ----- |
2022-08-27 13:27:28 -04:00
| extensionDirectory | String | the extension directory to check |
2022-08-08 13:17:25 -04:00