2022-08-22 00:40:38 -04:00
# Class I2PBrowser [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java)
> */
Access: public
2022-08-27 13:27:28 -04:00
Description:
> I2PBrowser.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. @description I2PBrowser is a that is used to open a browser window to the I2P network. It automatically detects the operating system and available browsers and selects the best one to use with Tor Browser at the top for Firefox and Brave at the top for Chrome.
Author: idk
2022-09-05 00:40:42 -04:00
Parent class: I2PCommonBrowser
2022-08-22 00:40:38 -04:00
package: net.i2p.i2pfirefox
## Dependencies
< details >
< summary >
Show dependencies
< / summary >
< ul >
2022-08-27 13:27:28 -04:00
< li > java.util.ArrayList< / li >
2022-08-22 00:40:38 -04:00
< / ul >
< / details >
## Member Variables
#### I2PFirefox i2pFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
>
+ Access: private
+ Modifiers: final
#### I2PChromium i2pChromium [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
>
+ Access: private
+ Modifiers: final
2022-08-27 23:23:11 -04:00
#### I2PGenericUnsafeBrowser i2pGeneral [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
>
+ Access: private
+ Modifiers: final
2022-08-22 00:40:38 -04:00
#### boolean firefox [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
>
+ Access: public
#### boolean chromium [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
>
+ Access: public
2022-08-27 23:48:12 -04:00
#### boolean generic [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
>
+ Access: public
2022-08-22 00:40:38 -04:00
#### boolean chromiumFirst [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
>
+ Access: public
2022-08-30 17:37:02 -04:00
#### boolean usability [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L)
>
+ Access: public
2022-08-22 00:40:38 -04:00
## Methods
2022-08-30 17:37:02 -04:00
### launchFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L34)
2022-08-27 13:27:28 -04:00
+ Description:
+ Access: private
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
2022-09-16 00:00:45 -04:00
| privateWindow | int | |
2022-08-27 13:27:28 -04:00
| url | String[] | |
2022-08-30 17:37:02 -04:00
### launchChromium [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L39)
2022-08-22 00:40:38 -04:00
+ Description:
+ Access: private
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
2022-09-16 00:00:45 -04:00
| privateWindow | int | |
2022-08-27 13:27:28 -04:00
| url | String[] | |
2022-08-22 00:40:38 -04:00
2022-08-30 17:37:02 -04:00
### launchGeneric [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L44)
2022-08-22 00:40:38 -04:00
+ Description:
2022-08-27 13:27:28 -04:00
+ Access: private
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
2022-09-16 00:00:45 -04:00
| privateWindowInt | int | |
2022-08-27 23:23:11 -04:00
| url | String[] | |
2022-08-27 13:27:28 -04:00
2022-09-16 00:00:45 -04:00
### setBrowser [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L70)
2022-08-27 23:49:19 -04:00
+ Description:
+ Access: public
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| browserPath | String | |
2022-09-16 00:00:45 -04:00
### hasChromium [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L80)
2022-08-27 13:27:28 -04:00
+ Description: Return true if there is a Chromium available
2022-08-22 00:40:38 -04:00
+ Access: public
2022-08-27 13:27:28 -04:00
+ return: true if Chromium is available false otherwise
2022-08-22 00:40:38 -04:00
This method has no parameters.
2022-09-16 00:00:45 -04:00
### hasFirefox [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L97)
2022-08-22 00:40:38 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Return true if there is a Firefox variant available
2022-08-22 00:40:38 -04:00
+ Access: public
2022-08-27 13:27:28 -04:00
+ return: true if Firefox variant is available false otherwise
2022-08-22 00:40:38 -04:00
This method has no parameters.
2022-09-16 00:00:45 -04:00
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L117)
2022-08-22 00:40:38 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
2022-08-22 00:40:38 -04:00
+ Access: public
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
2022-09-16 00:00:45 -04:00
| privateWindow | int | |
2022-08-27 13:27:28 -04:00
| url | String[] | |
2022-08-22 00:40:38 -04:00
2022-09-16 00:00:45 -04:00
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L160)
2022-08-22 00:40:38 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
+ Access: public
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| privateWindow | boolean | |
2022-09-16 00:00:45 -04:00
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L174)
2022-08-27 13:27:28 -04:00
+ Description: Populates a profile directory with a proxy configuration. Waits for an HTTP proxy on the port 4444 to be ready. Launches either Firefox or Chromium with the profile directory.
2022-08-22 00:40:38 -04:00
+ Access: public
+ return: void
This method has no parameters.
2022-09-16 00:00:45 -04:00
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L176)
2022-08-27 13:27:28 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String
| Name | Type | Description |
| ----- | ----- | ----- |
| inUrl | String | |
2022-09-16 00:00:45 -04:00
### main [[src]](src/java/net/i2p/i2pfirefox/I2PBrowser.java#L186)
2022-08-22 00:40:38 -04:00
+ Description:
+ Access: public
+ Modifiers: static
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| args | String[] | |