2022-08-08 13:17:25 -04:00
# Class I2PChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.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:
> I2PChromium.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-09-04 11:01:25 -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-10-23 01:24:04 -04:00
< li > java.io.FileOutputStream< / li >
2022-10-01 19:23:46 -04:00
< li > java.io.FileWriter< / li >
< li > java.io.IOException< / li >
2022-10-23 01:24:04 -04:00
< li > java.io.OutputStream< / li >
2022-10-01 19:23:46 -04:00
< li > java.io.PrintWriter< / li >
2022-08-08 13:17:25 -04:00
< li > java.util.ArrayList< / li >
2022-10-01 19:23:46 -04:00
< li > java.util.Arrays< / li >
2022-10-23 01:24:04 -04:00
< li > java.util.List< / li >
< li > java.util.stream.Collectors< / li >
2022-10-01 19:23:46 -04:00
< li > java.util.stream.Stream< / li >
2022-08-08 13:17:25 -04:00
< / ul >
< / details >
## Member Variables
#### String[] CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L)
>
+ Access: private
+ Modifiers: final
2022-08-28 00:25:26 -04:00
#### Process p [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L)
>
+ Access: private
2022-08-08 13:17:25 -04:00
## Methods
2022-10-23 01:24:04 -04:00
### storeChromiumDefaults [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L60)
+ Description:
+ Access: public
+ Modifiers: static
+ return: void
This method has no parameters.
### chromiumPathsUnix [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L89)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
This method has no parameters.
2022-10-23 01:24:04 -04:00
### chromiumBinsUnix [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L98)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
This method has no parameters.
2022-10-23 01:24:04 -04:00
### FIND_CHROMIUM_SEARCH_PATHS_UNIX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L114)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
This method has no parameters.
2022-10-23 01:24:04 -04:00
### chromiumPathsOSX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L128)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
This method has no parameters.
2022-10-23 01:24:04 -04:00
### FIND_CHROMIUM_SEARCH_PATHS_OSX [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L137)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
This method has no parameters.
2022-10-23 01:24:04 -04:00
### chromiumPathsWindows [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L151)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
This method has no parameters.
2022-10-24 00:10:47 -04:00
### chromiumBinsWindows [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L184)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
This method has no parameters.
2022-10-24 00:10:47 -04:00
### FIND_CHROMIUM_SEARCH_PATHS_WINDOWS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L196)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: private
+ Modifiers: static
2022-10-23 01:24:04 -04:00
+ return: String[]
This method has no parameters.
2022-10-24 00:10:47 -04:00
### FIND_ALL_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L210)
2022-10-23 01:24:04 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
This method has no parameters.
2022-10-24 00:10:47 -04:00
### FIND_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L230)
2022-10-23 01:24:04 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
This method has no parameters.
2022-10-24 00:10:47 -04:00
### NEARBY_CHROMIUM_SEARCH_PATHS [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L244)
2022-10-23 01:24:04 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
This method has no parameters.
2022-10-24 00:10:47 -04:00
### CHROMIUM_FINDER [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L337)
2022-10-23 01:24:04 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String[]
2022-08-08 13:17:25 -04:00
This method has no parameters.
2022-10-24 00:10:47 -04:00
### onlyValidChromiums [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L358)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Check our list of chrome paths for a valid chrome binary. Just an existence check for now but should check versions in the future.
2022-08-08 13:17:25 -04:00
+ Access: public
2022-08-27 13:27:28 -04:00
+ return: a list of usable Chromiums or an empty list if none are found.
2022-08-08 13:17:25 -04:00
This method has no parameters.
2022-10-24 00:10:47 -04:00
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L378)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Return the best available Chromium from the list of Chromiums we have.
2022-08-08 13:17:25 -04:00
+ Access: public
2022-08-27 13:27:28 -04:00
+ return: the path to the best available Chromium or null if none are found.
2022-08-08 13:17:25 -04:00
This method has no parameters.
2022-10-24 00:10:47 -04:00
### topChromium [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L407)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Return the best available Chromium from the list of Chromiums we have. if override is passed it will be validated and if it validates it will be used.
2022-08-08 13:17:25 -04:00
+ Access: public
2022-08-27 13:27:28 -04:00
+ return: the path to the best available Chromium or null if none are found.
2022-08-08 13:17:25 -04:00
| Name | Type | Description |
| ----- | ----- | ----- |
| overrideChromium | String | |
2022-10-24 00:10:47 -04:00
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L425)
2022-08-22 00:40:38 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
2022-08-22 00:40:38 -04:00
+ Access: public
2022-08-27 13:27:28 -04:00
+ return: a ProcessBuilder for the top Chromium binary and the default profile.
2022-08-22 00:40:38 -04:00
This method has no parameters.
2022-10-24 00:10:47 -04:00
### defaultProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L438)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile. @args the arguments to pass to the Chromium binary
2022-08-08 13:17:25 -04:00
+ Access: public
2022-08-27 13:27:28 -04:00
+ return: a ProcessBuilder for the top Chromium binary and the default profile.
| Name | Type | Description |
| ----- | ----- | ----- |
| args | String[] | |
2022-10-24 00:10:47 -04:00
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L450)
2022-08-27 13:27:28 -04:00
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
+ Access: public
+ return: a ProcessBuilder for the top Chromium binary and the default profile. Always passes the --incognito flag.
2022-08-08 13:17:25 -04:00
This method has no parameters.
2022-10-24 00:10:47 -04:00
### privateProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L463)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
2022-08-08 13:17:25 -04:00
+ Access: public
2022-08-27 13:27:28 -04:00
+ return: a ProcessBuilder for the top Chromium binary and the default profile. Always passes the --incognito flag.
2022-08-08 13:17:25 -04:00
| Name | Type | Description |
| ----- | ----- | ----- |
2022-08-27 13:27:28 -04:00
| args | String[] | the arguments to pass to the Chromium binary. |
2022-08-08 13:17:25 -04:00
2022-10-24 00:10:47 -04:00
### appProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L485)
2022-09-16 00:00:45 -04:00
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
+ Access: public
+ return: a ProcessBuilder for the top Chromium binary and the default profile. Always passes the --app flag.
This method has no parameters.
2022-10-24 00:10:47 -04:00
### appProcessBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L498)
2022-09-16 00:00:45 -04:00
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile.
+ Access: public
+ return: a ProcessBuilder for the top Chromium binary and the default profile. Always passes the --app flag.
| Name | Type | Description |
| ----- | ----- | ----- |
| args | String[] | the arguments to pass to the Chromium binary. |
2022-10-24 00:10:47 -04:00
### processBuilder [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L545)
2022-08-08 13:17:25 -04:00
2022-08-27 13:27:28 -04:00
+ Description: Build a ProcessBuilder for the top Chromium binary and the default profile with a specific set of extended arguments.
2022-08-08 13:17:25 -04:00
+ Access: public
2022-08-27 13:27:28 -04:00
+ return: a ProcessBuilder for the top Chromium binary and default profile with a specific set of extended arguments.
| Name | Type | Description |
| ----- | ----- | ----- |
| args | String[] | the extended arguments to pass to the Chromium binary. |
2022-10-24 00:10:47 -04:00
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L666)
2022-08-28 00:25:26 -04:00
+ Description:
+ Access: public
+ return: Process
| Name | Type | Description |
| ----- | ----- | ----- |
| privateWindow | boolean | |
| url | String[] | |
2022-10-24 00:10:47 -04:00
### launchAndDetatch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L673)
2022-09-16 00:00:45 -04:00
+ Description:
+ Access: public
+ return: Process
| Name | Type | Description |
| ----- | ----- | ----- |
| privateWindow | int | |
| url | String[] | |
2022-10-24 00:10:47 -04:00
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L731)
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 Chromium with the profile directory.
2022-08-22 00:40:38 -04:00
+ Access: public
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| privateWindow | boolean | |
2022-08-27 13:27:28 -04:00
| url | String[] | |
2022-08-22 00:40:38 -04:00
2022-10-24 00:10:47 -04:00
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L737)
2022-09-16 00:00:45 -04:00
+ Description:
+ Access: public
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| privateWindow | int | |
| url | String[] | |
2022-10-24 00:10:47 -04:00
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L762)
2022-08-08 13:17:25 -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 Chromium with the profile directory.
+ Access: public
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| privateWindow | boolean | |
2022-10-24 00:10:47 -04:00
### launch [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L771)
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 Chromium with the profile directory.
2022-08-08 13:17:25 -04:00
+ Access: public
+ return: void
This method has no parameters.
2022-10-24 00:10:47 -04:00
### ValidURL [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L773)
2022-08-27 13:27:28 -04:00
+ Description:
+ Access: private
+ Modifiers: static
+ return: String
| Name | Type | Description |
| ----- | ----- | ----- |
| inUrl | String | |
2022-10-24 00:10:47 -04:00
### main [[src]](src/java/net/i2p/i2pfirefox/I2PChromium.java#L783)
2022-08-08 13:17:25 -04:00
+ Description:
+ Access: public
+ Modifiers: static
+ return: void
| Name | Type | Description |
| ----- | ----- | ----- |
| args | String[] | |