A B C D E F G H I J K L N O P R S T U V W Y 
All Classes All Packages

A

accept(String) - Method in class top.focess.util.option.type.ExceptionOptionType
 
accept(String) - Method in class top.focess.util.option.type.OptionType
Indicate whether this type can accept the value.
addHandler(HttpHandler) - Method in class top.focess.util.network.NetworkHandler
Add a http handler to this network handler
AJSONList<E> - Class in top.focess.util.json
 
AJSONList(JSONList) - Constructor for class top.focess.util.json.AJSONList
 
ALPHA_VERSION - Static variable in class top.focess.util.version.Version
Represents an alpha version of a plugin.

B

Base64 - Class in top.focess.util
This is a Base64 util class.
Base64() - Constructor for class top.focess.util.Base64
 
BETA_VERSION - Static variable in class top.focess.util.version.Version
Represents a beta version of a plugin.
BUILD_VERSION - Static variable in class top.focess.util.version.Version
Represents a build version of a plugin.

C

ClassFinder - Interface in top.focess.util.serialize
Used to find class by its name.
compareTo(Version) - Method in class top.focess.util.version.Version
 
compute(String, BiFunction<? super String, ? super Object, ?>) - Method in interface top.focess.util.SectionMap
compute the value of the key-value pair
contains(String) - Method in class top.focess.util.json.JSON
 
contains(String) - Method in class top.focess.util.json.JSONObject
 
contains(String) - Method in interface top.focess.util.SectionMap
Indicate there is a key-value pair named key
containsSection(String) - Method in class top.focess.util.json.JSON
 
containsSection(String) - Method in interface top.focess.util.SectionMap
Indicate there is a section named key
containsSection(String) - Method in class top.focess.util.yaml.YamlConfiguration
 
createSection(String) - Method in class top.focess.util.json.JSON
 
createSection(String) - Method in interface top.focess.util.SectionMap
Create the section named key Note: if the section named key already exists, it will be replaced by a new section
createSection(String) - Method in class top.focess.util.yaml.YamlConfiguration
 

D

decodeBase64(byte[]) - Static method in class top.focess.util.Base64
Used to decode the data with base64
decryptRSA(byte[], String) - Static method in class top.focess.util.RSA
Decrypt data with RSA private key
DEFAULT_OPTION_TYPE - Static variable in class top.focess.util.option.type.OptionType
Accept all values
DEFAULT_VERSION - Static variable in class top.focess.util.version.Version
Represents a default release version of a plugin.
delete(String, String, Map<String, String>, MediaType) - Method in class top.focess.util.network.NetworkHandler
Send a DELETE http-request
DELETE - top.focess.util.network.NetworkHandler.RequestType
HTTP DELETE Request Method
deserialize(Map<String, Object>) - Static method in class top.focess.util.Pair
 
deserialize(Map<String, Object>) - Static method in class top.focess.util.version.Version
 

E

encodeBase64(byte[]) - Static method in class top.focess.util.Base64
Used to encode the data with base64
encryptRSA(byte[], String) - Static method in class top.focess.util.RSA
Encrypt data with RSA public key
equals(Object) - Method in class top.focess.util.Pair
 
equals(Object) - Method in class top.focess.util.version.Version
 
EXCEPTION - Static variable in class top.focess.util.network.HttpResponse
Exception thrown error code
ExceptionOptionType<T> - Class in top.focess.util.option.type
Simplify the OptionType class.
ExceptionOptionType() - Constructor for class top.focess.util.option.type.ExceptionOptionType
 

F

FocessReader - Class in top.focess.util.serialize
This class is used to deserialize FocessSerializable-Object.
FocessReader() - Constructor for class top.focess.util.serialize.FocessReader
 
FocessSerializable - Interface in top.focess.util.serialize
Represents this class is a serializable class
FocessWriter - Class in top.focess.util.serialize
This class is used to serialize FocessSerializable-Object.
FocessWriter() - Constructor for class top.focess.util.serialize.FocessWriter
 
forName(String) - Method in interface top.focess.util.serialize.ClassFinder
Finds the class by its name.
forName0(String) - Method in interface top.focess.util.serialize.ClassFinder
 

G

genRSAKeypair() - Static method in class top.focess.util.RSA
Generate RSA key pair
get(int) - Method in class top.focess.util.json.AJSONList
 
get(int) - Method in class top.focess.util.json.JSONList
 
get(int) - Method in class top.focess.util.json.JSONObject
Get the value at the given index
get(String) - Method in class top.focess.util.json.JSON
 
get(String) - Method in class top.focess.util.json.JSONObject
Get the value of the key-value pair
get(String) - Method in class top.focess.util.option.Options
Get option named key
get(String) - Method in interface top.focess.util.SectionMap
Get the value of the key-value pair
get(String) - Method in class top.focess.util.yaml.YamlConfiguration
 
get(String, Map<String, Object>, Map<String, String>) - Method in class top.focess.util.network.NetworkHandler
Send a GET http-request
get(OptionType<T>) - Method in class top.focess.util.option.Option
Get argument by the option type
GET - top.focess.util.network.NetworkHandler.RequestType
HTTP GET Request Method
getAsJSON() - Method in class top.focess.util.network.HttpResponse
Get the value as JSON
getAsString() - Method in class top.focess.util.network.HttpResponse
Get the value as String
getBuild() - Method in class top.focess.util.version.Version
 
getCode() - Method in class top.focess.util.network.HttpResponse
 
getDefaultClassFinder() - Static method in class top.focess.util.serialize.SimpleFocessReader
 
getException() - Method in class top.focess.util.network.HttpResponse
 
getFirst() - Method in class top.focess.util.Pair
 
getHeaders() - Method in class top.focess.util.network.HttpResponse
 
getJSON(int) - Method in class top.focess.util.json.JSONList
 
getJSON(int) - Method in class top.focess.util.json.JSONObject
Get as JSON at the given index
getJSON(String) - Method in class top.focess.util.json.JSON
 
getJSON(String) - Method in class top.focess.util.json.JSONObject
 
getJSONList() - Method in class top.focess.util.json.AJSONList
 
getJSONList() - Method in interface top.focess.util.json.IJSONList
 
getJSONList() - Method in class top.focess.util.json.JSONList
 
getKey() - Method in class top.focess.util.Pair
 
getLeft() - Method in class top.focess.util.Pair
 
getList(int) - Method in class top.focess.util.json.JSONList
 
getList(int) - Method in class top.focess.util.json.JSONObject
Get the list at the given index
getList(String) - Method in class top.focess.util.json.JSON
 
getList(String) - Method in class top.focess.util.json.JSONObject
Get the list named key
getList(String) - Method in class top.focess.util.yaml.YamlConfiguration
Get the value of the key-value pair as list
getListOrEmpty(String) - Method in class top.focess.util.yaml.YamlConfiguration
Get the value of the key-value pair as list
getMajor() - Method in class top.focess.util.version.Version
 
getMinor() - Method in class top.focess.util.version.Version
 
getName() - Method in class top.focess.util.option.Option
Get the name of the option
getName() - Method in class top.focess.util.option.OptionParserClassifier
 
getOptionTypes() - Method in class top.focess.util.option.OptionParserClassifier
 
getOrDefault(String, T) - Method in interface top.focess.util.SectionMap
Get the value of the key-value pair
getParent() - Method in class top.focess.util.json.JSONSection
Get the parent section
getParent() - Method in class top.focess.util.yaml.YamlConfigurationSection
Get the parent section
getPrivateKey() - Method in class top.focess.util.RSAKeypair
Get the private key
getPublicKey() - Method in class top.focess.util.RSAKeypair
Get the public key
getResponse() - Method in class top.focess.util.network.HttpResponse
 
getRevision() - Method in class top.focess.util.version.Version
 
getRight() - Method in class top.focess.util.Pair
 
getSecond() - Method in class top.focess.util.Pair
 
getSection(String) - Method in class top.focess.util.json.JSON
 
getSection(String) - Method in interface top.focess.util.SectionMap
Get the section named key Note: if the section named key does not exist, it will be created
getSection(String) - Method in class top.focess.util.yaml.YamlConfiguration
 
getValue() - Method in class top.focess.util.Pair
 
getValues() - Method in class top.focess.util.json.AJSONList
 
getValues() - Method in class top.focess.util.json.JSON
 
getValues() - Method in class top.focess.util.json.JSONList
 
getValues() - Method in interface top.focess.util.SectionMap
Get all the key-value pairs
getValues() - Method in class top.focess.util.yaml.YamlConfiguration
 

H

handle(String, String, Map<String, String>, String) - Method in interface top.focess.util.network.HttpHandler
 
handleException(String, String, Map<String, String>, Exception) - Method in interface top.focess.util.network.HttpHandler
 
hashCode() - Method in class top.focess.util.Pair
 
hashCode() - Method in class top.focess.util.version.Version
 
higher(Version) - Method in class top.focess.util.version.Version
Indicate whether this version is greater than the specified version
HttpHandler - Interface in top.focess.util.network
 
HttpResponse - Class in top.focess.util.network
This class is used to define a response to a http-request
HttpResponse(int, Headers, String) - Constructor for class top.focess.util.network.HttpResponse
Initialize a HttpResponse without exceptions
HttpResponse(Exception) - Constructor for class top.focess.util.network.HttpResponse
Initialize an exception thrown HttpResponse with e
HttpResponseException - Exception in top.focess.util.network
Thrown to indicate that the request was not successful
HttpResponseException(Exception) - Constructor for exception top.focess.util.network.HttpResponseException
Constructs a HttpResponseException

I

IJSONList - Interface in top.focess.util.json
 
INTEGER_OPTION_TYPE - Static variable in class top.focess.util.option.type.IntegerOptionType
Single Instance for IntegerOptionType
IntegerOptionType - Class in top.focess.util.option.type
Accept Integer type option.
IntegerOptionType() - Constructor for class top.focess.util.option.type.IntegerOptionType
 
isEmpty() - Method in class top.focess.util.json.JSONList
 
isError() - Method in class top.focess.util.network.HttpResponse
Indicate this is an exception thrown HttpResponse
iterator() - Method in class top.focess.util.json.JSONDoubleList
 
iterator() - Method in class top.focess.util.json.JSONIntList
 
iterator() - Method in class top.focess.util.json.JSONList
 
iterator() - Method in class top.focess.util.json.JSONStringList
 

J

JSON - Class in top.focess.util.json
This class is used to define a JSON object as Map.
JSON - Static variable in class top.focess.util.network.NetworkHandler
Used to indicate this http-request accepts JSON
JSON(String) - Constructor for class top.focess.util.json.JSON
Constructs a JSON object from a JSON string
JSON(Map<String, Object>) - Constructor for class top.focess.util.json.JSON
Initializes the JSON with existed key-value pairs (usually not)
JSONDoubleList - Class in top.focess.util.json
 
JSONDoubleList(JSONList) - Constructor for class top.focess.util.json.JSONDoubleList
 
JSONIntList - Class in top.focess.util.json
 
JSONIntList(JSONList) - Constructor for class top.focess.util.json.JSONIntList
 
JSONList - Class in top.focess.util.json
This class is used to define a JSON object as List.
JSONList(String) - Constructor for class top.focess.util.json.JSONList
Constructs a JSONList from a JSON string
JSONList(List<?>) - Constructor for class top.focess.util.json.JSONList
Initializes the JSONList with existed values
JSONObject - Class in top.focess.util.json
Represents a JSON object.
JSONObject() - Constructor for class top.focess.util.json.JSONObject
 
JSONParseException - Exception in top.focess.util.json
Thrown to indicate JSON parsing error
JSONParseException(String) - Constructor for exception top.focess.util.json.JSONParseException
Constructs a new JSONParseException
JSONSection - Class in top.focess.util.json
Section of JSON.
JSONSection(JSON, Map<String, Object>) - Constructor for class top.focess.util.json.JSONSection
 
JSONStringList - Class in top.focess.util.json
 
JSONStringList(JSONList) - Constructor for class top.focess.util.json.JSONStringList
 

K

keys() - Method in interface top.focess.util.SectionMap
Get all the keys in set

L

list - Variable in class top.focess.util.json.AJSONList
 
load(InputStream) - Static method in class top.focess.util.yaml.YamlConfiguration
 
loadFile(File) - Static method in class top.focess.util.yaml.YamlConfiguration
Load the file as a YAML configuration
LONG_OPTION_TYPE - Static variable in class top.focess.util.option.type.LongOptionType
Single Instance for LongOptionType
LongOptionType - Class in top.focess.util.option.type
Accept long type argument
LongOptionType() - Constructor for class top.focess.util.option.type.LongOptionType
 
lower(Version) - Method in class top.focess.util.version.Version
Indicate whether this version is lower than the specified version

N

NetworkHandler - Class in top.focess.util.network
This is a network util class.
NetworkHandler() - Constructor for class top.focess.util.network.NetworkHandler
Initialize a NetworkHandler with default options
NetworkHandler(NetworkHandler.Options) - Constructor for class top.focess.util.network.NetworkHandler
Initialize a NetworkHandler with specified options
NetworkHandler.Options - Class in top.focess.util.network
NetworkHandler Options
NetworkHandler.RequestType - Enum in top.focess.util.network
Represents a request-type
newFocessReader(InputStream) - Static method in class top.focess.util.serialize.FocessReader
New a FocessReader with given input stream
newFocessWriter(OutputStream) - Static method in class top.focess.util.serialize.FocessWriter
New a FocessWriter with given output stream
NotFocessSerializableException - Exception in top.focess.util.serialize
Thrown to indicate that an object is not serializable.
NotFocessSerializableException(String) - Constructor for exception top.focess.util.serialize.NotFocessSerializableException
Constructs a NotFocessSerializableException

O

of(K, V) - Static method in class top.focess.util.Pair
Constructs a new Pair with static method
ofConnectTimeout(int) - Static method in class top.focess.util.network.NetworkHandler.Options
Set the connecting timeout
ofNull() - Static method in class top.focess.util.network.HttpResponse
 
ofNull() - Static method in class top.focess.util.network.NetworkHandler.Options
Use the default options
ofReadTimeout(int) - Static method in class top.focess.util.network.NetworkHandler.Options
Set the reading timeout
ofWriteTimeout(int) - Static method in class top.focess.util.network.NetworkHandler.Options
Set the writing timeout
Option - Class in top.focess.util.option
An option is a way to present arguments.
Option(OptionParserClassifier) - Constructor for class top.focess.util.option.Option
 
OptionParserClassifier - Class in top.focess.util.option
This class defines how to parse the arguments into Option
OptionParserClassifier(String, OptionType<?>...) - Constructor for class top.focess.util.option.OptionParserClassifier
Initialize an OptionParserClassifier
Options - Class in top.focess.util.option
Used to parse the arguments into options
Options() - Constructor for class top.focess.util.network.NetworkHandler.Options
 
OptionType<T> - Class in top.focess.util.option.type
This class is used to define the type of argument
OptionType() - Constructor for class top.focess.util.option.type.OptionType
 

P

Pair<K,​V> - Class in top.focess.util
This is an Easy Util Class to store two Instances.
Pair(K, V) - Constructor for class top.focess.util.Pair
 
parse(Object) - Static method in class top.focess.util.json.JSONObject
 
parse(String) - Static method in class top.focess.util.json.JSONObject
Parse the given string into a JSON object.
parse(String) - Method in class top.focess.util.option.type.IntegerOptionType
 
parse(String) - Method in class top.focess.util.option.type.LongOptionType
 
parse(String) - Method in class top.focess.util.option.type.OptionType
Parse the value to the target type.
parse(String[]) - Method in class top.focess.util.option.OptionParserClassifier
Parse the arguments into Option
parse(String[], OptionParserClassifier...) - Static method in class top.focess.util.option.Options
Used to parse the arguments into options
post(String, String, Map<String, String>, MediaType) - Method in class top.focess.util.network.NetworkHandler
Send a POST http-request
POST - top.focess.util.network.NetworkHandler.RequestType
HTTP POST Request Method
put(String, String, Map<String, String>, MediaType) - Method in class top.focess.util.network.NetworkHandler
Send a PUT http-request
put(OptionType<?>, String) - Method in class top.focess.util.option.Option
 
PUT - top.focess.util.network.NetworkHandler.RequestType
HTTP PUT Request Method

R

read() - Method in class top.focess.util.serialize.FocessReader
Read object from the reader
read() - Method in class top.focess.util.serialize.SimpleFocessReader
 
remove(String) - Method in interface top.focess.util.SectionMap
Remove the key-value pair named key
request(String, String, Map<String, String>, MediaType, NetworkHandler.RequestType) - Method in class top.focess.util.network.NetworkHandler
Send a http-request
request(String, Map<String, Object>, Map<String, String>, MediaType, NetworkHandler.RequestType) - Method in class top.focess.util.network.NetworkHandler
Send a http-request
request(String, Map<String, Object>, NetworkHandler.RequestType) - Method in class top.focess.util.network.NetworkHandler
Send a http-request
request(String, NetworkHandler.RequestType) - Method in class top.focess.util.network.NetworkHandler
Send a http-request
RSA - Class in top.focess.util
This is an RSA util class.
RSA() - Constructor for class top.focess.util.RSA
 
RSAKeypair - Class in top.focess.util
This class is used to store a RSA Keypair.
RSAKeypair(String, String) - Constructor for class top.focess.util.RSAKeypair
Constructs a new RSAKeypair with the given public key and private key.

S

save(File) - Method in class top.focess.util.yaml.YamlConfiguration
Save the YAML configuration as a file
SectionMap - Interface in top.focess.util
This is an util class to define basic access to the data.
SerializationException - Exception in top.focess.util.serialize
Thrown to indicate that an error occurred while serializing or deserializing.
SerializationException(Exception) - Constructor for exception top.focess.util.serialize.SerializationException
 
SerializationParseException - Exception in top.focess.util.serialize
Thrown to indicate that a serialization parse error has occurred.
SerializationParseException(Exception) - Constructor for exception top.focess.util.serialize.SerializationParseException
Constructs a SerializationParseException
SerializationParseException(String) - Constructor for exception top.focess.util.serialize.SerializationParseException
Constructs a SerializationParseException
serialize() - Method in class top.focess.util.Pair
 
serialize() - Method in interface top.focess.util.serialize.FocessSerializable
Serialize the object
serialize() - Method in class top.focess.util.version.Version
 
set(String, Object) - Method in class top.focess.util.yaml.YamlConfiguration
 
set(String, Object) - Method in interface top.focess.util.SectionMap
Store the key-value pair
setConnectTimeout(int) - Method in class top.focess.util.network.NetworkHandler.Options
Set the connecting timeout
setDefaultClassFinder(ClassFinder) - Static method in class top.focess.util.serialize.SimpleFocessReader
 
setList(String, List<?>) - Method in class top.focess.util.yaml.YamlConfiguration
Set the list value of the key-value pair
setReadTimeout(int) - Method in class top.focess.util.network.NetworkHandler.Options
Set the reading timeout
setWriteTimeout(int) - Method in class top.focess.util.network.NetworkHandler.Options
Set the writing timeout
sign(byte[], String) - Static method in class top.focess.util.RSA
Sign data with RSA private key
SimpleFocessReader - Class in top.focess.util.serialize
 
SimpleFocessReader(byte[]) - Constructor for class top.focess.util.serialize.SimpleFocessReader
 
SimpleFocessWriter - Class in top.focess.util.serialize
 
SimpleFocessWriter() - Constructor for class top.focess.util.serialize.SimpleFocessWriter
 
size() - Method in class top.focess.util.json.AJSONList
 
size() - Method in interface top.focess.util.json.IJSONList
 
size() - Method in class top.focess.util.json.JSONList
 
size() - Method in class top.focess.util.json.JSONObject
Get the size of this JSON instance Note: this is for JSONList only.

T

TEXT - Static variable in class top.focess.util.network.NetworkHandler
Used to indicate this http-request accepts normal String
toByteArray() - Method in class top.focess.util.serialize.SimpleFocessWriter
 
toDoubles() - Method in class top.focess.util.json.JSONList
 
toInts() - Method in class top.focess.util.json.JSONList
 
toJson() - Method in class top.focess.util.json.AJSONList
 
toJson() - Method in class top.focess.util.json.JSON
 
toJson() - Method in class top.focess.util.json.JSONList
 
toJson() - Method in class top.focess.util.json.JSONObject
Translate this JSON instance into json String
top.focess.util - package top.focess.util
 
top.focess.util.json - package top.focess.util.json
 
top.focess.util.network - package top.focess.util.network
 
top.focess.util.option - package top.focess.util.option
 
top.focess.util.option.type - package top.focess.util.option.type
 
top.focess.util.serialize - package top.focess.util.serialize
 
top.focess.util.version - package top.focess.util.version
 
top.focess.util.yaml - package top.focess.util.yaml
 
toString() - Method in class top.focess.util.json.JSON
 
toString() - Method in class top.focess.util.json.JSONList
 
toString() - Method in class top.focess.util.option.Option
 
toString() - Method in class top.focess.util.option.Options
 
toString() - Method in class top.focess.util.option.type.IntegerOptionType
 
toString() - Method in class top.focess.util.option.type.LongOptionType
 
toString() - Method in class top.focess.util.Pair
 
toString() - Method in class top.focess.util.version.Version
 
toString() - Method in class top.focess.util.yaml.YamlConfiguration
 

U

UNKNOWN_REQUEST - Static variable in class top.focess.util.network.HttpResponse
Unknown request type error code
UnsupportedOptionException - Exception in top.focess.util.option
Thrown to indicate that an option is not supported.
UnsupportedOptionException(String) - Constructor for exception top.focess.util.option.UnsupportedOptionException
Constructs an UnsupportedOptionException
URL_ENCODED - Static variable in class top.focess.util.network.NetworkHandler
 

V

valueOf(String) - Static method in enum top.focess.util.network.NetworkHandler.RequestType
Returns the enum constant of this type with the specified name.
values() - Static method in enum top.focess.util.network.NetworkHandler.RequestType
Returns an array containing the constants of this enum type, in the order they are declared.
verify(byte[], String, byte[]) - Static method in class top.focess.util.RSA
Verify sign with RSA public key
Version - Class in top.focess.util.version
Represents a version of a plugin.
Version(int, int) - Constructor for class top.focess.util.version.Version
Constructs a new version with the specified version numbers.
Version(int, int, int) - Constructor for class top.focess.util.version.Version
Constructs a new version with the specified version numbers.
Version(int, int, int, String) - Constructor for class top.focess.util.version.Version
Constructs a new version with the specified version numbers and build.
Version(String) - Constructor for class top.focess.util.version.Version
Constructs a new version with the specified version.
VersionFormatException - Exception in top.focess.util.version
Thrown to indicate that a version string is not in the correct format.
VersionFormatException(String) - Constructor for exception top.focess.util.version.VersionFormatException
Constructs a VersionFormatException

W

write(Object) - Method in class top.focess.util.serialize.FocessWriter
Write object by this writer
write(Object) - Method in class top.focess.util.serialize.SimpleFocessWriter
 

Y

YamlConfiguration - Class in top.focess.util.yaml
This class is used to define a YAML configuration.
YamlConfiguration(Map<String, Object>) - Constructor for class top.focess.util.yaml.YamlConfiguration
Initializes the YamlConfiguration with existed key-value pairs
YamlConfigurationSection - Class in top.focess.util.yaml
Section of YamlConfiguration.
YamlConfigurationSection(YamlConfiguration, Map<String, Object>) - Constructor for class top.focess.util.yaml.YamlConfigurationSection
 
YamlLoadException - Exception in top.focess.util.yaml
Thrown to indicate there is any exception thrown in the yaml loading process
YamlLoadException(Exception) - Constructor for exception top.focess.util.yaml.YamlLoadException
Constructs a YamlLoadException
YamlSaveException - Exception in top.focess.util.yaml
Thrown to indicate that fail to save yaml file.
YamlSaveException(IOException) - Constructor for exception top.focess.util.yaml.YamlSaveException
 
A B C D E F G H I J K L N O P R S T U V W Y 
All Classes All Packages