Package sonia.scm.util
Class AbstractBase
java.lang.Object
sonia.scm.util.AbstractBase
Abstract base class for encoding and decoding BaseX.
- Since:
- 1.21
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static BigInteger
decode
(String chars, BigInteger base, String value) Decode a BaseX string to a BigInteger value.protected static String
encode
(String chars, BigInteger base, BigInteger value) Encode BigInteger value to a BaseX string.
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
decode
Decode a BaseX string to a BigInteger value.- Parameters:
chars
- char tablebase
- base valuevalue
- BaseX string to decode- Returns:
- decoded value
-
encode
Encode BigInteger value to a BaseX string.- Parameters:
chars
- char tablebase
- base valuevalue
- BigInteger value to encode- Returns:
- encoded BaseX string
-