2022-08-30 16:02:28 -04:00
# Class I2PCommonBrowser [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java)
>
Access: public
2022-09-01 15:37:27 -04:00
Description:
> I2PCommonBrowser.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.
Author: idk
2022-08-30 16:02:28 -04:00
package: net.i2p.i2pfirefox
## Dependencies
< details >
< summary >
Show dependencies
< / summary >
< ul >
< li > java.io.File< / li >
< li > java.io.FileInputStream< / li >
< li > java.io.FileOutputStream< / li >
< li > java.io.IOException< / li >
< li > java.io.InputStream< / li >
< li > java.io.OutputStream< / li >
< li > java.nio.file.Files< / li >
< li > java.nio.file.StandardCopyOption< / li >
< li > java.util.zip.ZipEntry< / li >
< li > java.util.zip.ZipInputStream< / li >
< / ul >
< / details >
## No member variables in this class
## Methods
2022-09-01 15:37:27 -04:00
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L38)
2022-08-30 16:02:28 -04:00
+ Description: get the runtime directory creating it if create=true
+ Access: protected
+ Modifiers: static
+ return: the runtime directory or null if it could not be created
| Name | Type | Description |
| ----- | ----- | ----- |
| create | boolean | if true create the runtime directory if it does not exist |
| override | String | |
2022-09-01 15:37:27 -04:00
### runtimeDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L55)
2022-08-30 16:02:28 -04:00
+ Description: get the correct runtime directory
+ Access: protected
+ Modifiers: static
+ return: the runtime directory or null if it could not be created or found
| Name | Type | Description |
| ----- | ----- | ----- |
| override | String | |
2022-09-01 15:37:27 -04:00
### profileDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L102)
2022-08-30 16:02:28 -04:00
+ Description: get the profile directory creating it if necessary
+ Access: protected
+ Modifiers: static
+ return: the profile directory or null if it could not be created
| Name | Type | Description |
| ----- | ----- | ----- |
| envVar | String | |
| browser | String | |
2022-09-01 15:37:27 -04:00
### profileDir [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L114)
2022-08-30 16:02:28 -04:00
+ Description:
+ Access: protected
+ Modifiers: static
+ return: String
| Name | Type | Description |
| ----- | ----- | ----- |
| file | String | |
| browser | String | |
2022-09-01 15:37:27 -04:00
### unpackProfile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L120)
2022-08-30 16:02:28 -04:00
+ Description:
+ Access: protected
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| profileDirectory | String | |
| browser | String | |
| base | String | |
2022-09-01 15:37:27 -04:00
### copyDirectory [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L167)
2022-08-30 16:02:28 -04:00
+ Description:
+ Access: protected
+ Modifiers: static
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| sourceDirectory | File | |
| destinationDirectory | File | |
| browser | String | |
2022-08-30 17:37:02 -04:00
| base | String | |
2022-08-30 16:02:28 -04:00
2022-09-01 15:37:27 -04:00
### copyDirectoryCompatibityMode [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L183)
2022-08-30 16:02:28 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| source | File | |
| destination | File | |
| browser | String | |
2022-08-30 17:37:02 -04:00
| base | String | |
2022-08-30 16:02:28 -04:00
2022-09-01 15:37:27 -04:00
### copyFile [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L192)
2022-08-30 16:02:28 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| sourceFile | File | |
| destinationFile | File | |
2022-09-04 11:01:25 -04:00
### validateProfileFirstRun [[src]](src/java/net/i2p/i2pfirefox/I2PCommonBrowser.java#L203)
+ Description:
+ Access: public
+ Modifiers: static
+ return: boolean
| Name | Type | Description |
| ----- | ----- | ----- |
| profileDirectory | String | |