2022-08-08 13:17:25 -04:00
# Class I2PFirefoxProfileBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.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:
> I2PFirefoxProfileBuilder.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. I2PFirefoxProfileBuilder is a that builds a profile directory which contains the I2P browser profile for the Firefox browser family. It manages the base profile directory and copies it's contents to the active profile directory which is actually used by Firefox.
Author: idk
2022-08-30 16:02:28 -04:00
Parent class: I2PCommonBrowser
2022-08-08 13:17:25 -04:00
package: net.i2p.i2pfirefox
## Dependencies
< details >
< summary >
Show dependencies
< / summary >
< ul >
< li > java.io.File< / li >
2022-09-16 00:00:45 -04:00
< li > java.io.IOException< / li >
2022-08-08 13:17:25 -04:00
< li > java.nio.file.Files< / li >
< li > java.nio.file.StandardCopyOption< / li >
< / ul >
< / details >
## Member Variables
#### boolean strict [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L)
>
+ Access: private
+ Modifiers: static
## Methods
2022-09-16 00:00:45 -04:00
### userChromeCSS [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L28)
+ Description:
+ Access: private
+ Modifiers: static
+ return: String
This method has no parameters.
2022-10-20 00:47:50 -04:00
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L110)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: get the profile directory creating it if necessary
2022-08-08 13:17:25 -04:00
+ Access: public
+ Modifiers: static
+ return: String
2022-09-16 00:00:45 -04:00
| Name | Type | Description |
| ----- | ----- | ----- |
| app | boolean | |
2022-10-23 01:24:04 -04:00
| base | String | |
2022-08-08 13:17:25 -04:00
2022-10-20 00:47:50 -04:00
### baseProfileDir [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L114)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String
| Name | Type | Description |
| ----- | ----- | ----- |
| file | String | |
2022-08-30 17:37:02 -04:00
| base | String | |
2022-08-08 13:17:25 -04:00
2022-10-20 00:47:50 -04:00
### baseProfileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L134)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: get the base profile directory creating it if necessary
2022-08-08 13:17:25 -04:00
+ Access: public
+ Modifiers: static
+ return: String
2022-08-30 17:37:02 -04:00
| Name | Type | Description |
| ----- | ----- | ----- |
| base | String | |
2022-08-08 13:17:25 -04:00
2022-10-20 00:47:50 -04:00
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L158)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: get the runtime directory creating it if create=true
2022-08-08 13:17:25 -04:00
+ Access: public
+ Modifiers: static
2022-08-27 13:27:28 -04:00
+ return: the runtime directory or null if it could not be created
2022-08-08 13:17:25 -04:00
| Name | Type | Description |
| ----- | ----- | ----- |
2022-08-27 13:27:28 -04:00
| create | boolean | if true create the runtime directory if it does not exist |
2022-08-08 13:17:25 -04:00
2022-10-20 00:47:50 -04:00
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L169)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: get the correct runtime directory
2022-08-08 13:17:25 -04:00
+ Access: public
+ Modifiers: static
2022-08-27 13:27:28 -04:00
+ return: the runtime directory or null if it could not be created or found
2022-08-08 13:17:25 -04:00
This method has no parameters.
2022-10-20 00:47:50 -04:00
### copyBaseProfiletoProfile [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L189)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Copy the inert base profile directory to the runtime profile directory
2022-08-08 13:17:25 -04:00
+ Access: public
+ Modifiers: static
+ return: boolean
2022-08-30 17:37:02 -04:00
| Name | Type | Description |
| ----- | ----- | ----- |
| base | String | |
2022-09-16 00:00:45 -04:00
| app | boolean | |
2022-10-20 00:47:50 -04:00
### writeAppChrome [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L222)
2022-09-16 00:00:45 -04:00
+ Description:
+ Access: protected
+ Modifiers: static
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| profile | String | |
2022-10-20 00:47:50 -04:00
### deleteAppChrome [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L235)
2022-09-16 00:00:45 -04:00
+ Description:
+ Access: protected
+ Modifiers: static
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| profile | String | |
2022-08-08 13:17:25 -04:00
2022-10-20 00:47:50 -04:00
### copyStrictOptions [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L250)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Copy the strict options from the base profile to the profile
2022-08-08 13:17:25 -04:00
+ Access: public
+ Modifiers: static
2022-08-27 13:27:28 -04:00
+ return: true if successful false otherwise
2022-08-08 13:17:25 -04:00
2022-08-30 17:37:02 -04:00
| Name | Type | Description |
| ----- | ----- | ----- |
| base | String | |
2022-09-16 00:00:45 -04:00
| app | boolean | |
2022-08-08 13:17:25 -04:00
2022-11-06 21:48:50 -05:00
### setupUserChrome [[src]](src/java/net/i2p/i2pfirefox/I2PFirefoxProfileBuilder.java#L285)
+ Description:
+ Access: public
+ Modifiers: static
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| profileDir | File | |
| app | boolean | |