Class I2PCommonBrowser [src]
Access: public
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
package: net.i2p.i2pfirefox
Dependencies
Show dependencies
- java.io.File
- java.io.FileInputStream
- java.io.FileOutputStream
- java.io.IOException
- java.io.InputStream
- java.io.OutputStream
- java.net.Socket
- java.nio.file.Files
- java.nio.file.StandardCopyOption
- java.util.Arrays
- java.util.Properties
- java.util.logging.FileHandler
- java.util.logging.Logger
- java.util.logging.SimpleFormatter
- java.util.zip.ZipEntry
- java.util.zip.ZipInputStream
Member Variables
Properties prop [src]
Logger logger [src]
FileHandler fh [src]
Methods
loadPropertiesFile [src]
- Description:
- Access: public
- return: void
Name |
Type |
Description |
props |
File |
|
validateUserDir [src]
- Description:
- Access: public
- return: void
This method has no parameters.
getOperatingSystem [src]
- Description:
- Access: public
- return: String
This method has no parameters.
- Description:
- Access: protected
- return: boolean
This method has no parameters.
- Description:
- Access: protected
- return: boolean
This method has no parameters.
runtimeDirectory [src]
- Description: get the runtime directory creating it if create=true
- Access: protected
- 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 |
|
runtimeDirectory [src]
- Description: get the correct runtime directory
- Access: protected
- return: the runtime directory or null if it could not be created or found
Name |
Type |
Description |
override |
String |
|
profileDirectory [src]
- Description: get the profile directory creating it if necessary
- Access: protected
- return: the profile directory or null if it could not be created
Name |
Type |
Description |
envVar |
String |
|
browser |
String |
|
base |
String |
|
app |
boolean |
|
profileDir [src]
- Description:
- Access: protected
- return: String
Name |
Type |
Description |
file |
String |
|
browser |
String |
|
base |
String |
|
app |
boolean |
|
unpackProfile [src]
- Description:
- Access: protected
- return: boolean
Name |
Type |
Description |
profileDirectory |
String |
|
browser |
String |
|
base |
String |
|
copyDirectory [src]
- Description:
- Access: protected
- return: void
Name |
Type |
Description |
sourceDirectory |
File |
|
destinationDirectory |
File |
|
browser |
String |
|
base |
String |
|
copyDirectoryCompatibilityMode [src]
- Description:
- Access: private
- return: void
Name |
Type |
Description |
source |
File |
|
destination |
File |
|
browser |
String |
|
base |
String |
|
- Description:
- Access: public
- return: void
Name |
Type |
Description |
source |
InputStream |
|
target |
OutputStream |
|
- Description:
- Access: private
- return: void
Name |
Type |
Description |
sourceFile |
File |
|
destinationFile |
File |
|
validateProfileFirstRun [src]
- Description:
- Access: public
- return: boolean
Name |
Type |
Description |
profileDirectory |
String |
|
waitForProxy [src]
- Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of 200 seconds.
- Access: public
- return: true if the proxy is ready false if it is not.
This method has no parameters.
waitForProxy [src]
- Description: Waits for an HTTP proxy on port 4444 to be ready. Returns false on timeout of the specified number of seconds.
- Access: public
- return: true if the proxy is ready false if it is not.
Name |
Type |
Description |
timeout |
int |
the number of seconds to wait for the proxy to be ready. |
waitForProxy [src]
- Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds.
- Access: public
- return: true if the proxy is ready false if it is not.
Name |
Type |
Description |
timeout |
int |
the number of seconds to wait for the proxy to be ready. |
port |
int |
the port to wait for the proxy to be ready on. |
waitForProxy [src]
- Description: Waits for an HTTP proxy on the specified port to be ready. Returns false on timeout of the specified number of seconds. If the timeout is zero or less the check is disabled and always returns true.
- Access: public
- return: true if the proxy is ready false if it is not.
Name |
Type |
Description |
timeout |
int |
the number of seconds to wait for the proxy to be ready. |
port |
int |
the port to wait for the proxy to be ready on. |
host |
String |
the host to wait for the proxy to be ready on. |
checkifPortIsOccupied [src]
- Description:
- Access: public
- return: boolean
Name |
Type |
Description |
port |
int |
|
host |
String |
|
setProxyTimeoutTime [src]
- Description: Alters the proxy timeout to customized value time in seconds. May be zero.
- Access: public
- return: void
Name |
Type |
Description |
time |
int |
|
- Description:
- Access: protected
- return: String
Name |
Type |
Description |
arr |
String[] |
|
- Description:
- Access: public
- return: void
Name |
Type |
Description |
millis |
int |
|
searchFile [src]
- Description:
- Access: public
- return: File
Name |
Type |
Description |
file |
File |
|
search |
String |
|