MaxiSetsEncoding
Inheritance: java.lang.Object
public class MaxiSetsEncoding
Functions for encoding codesets logic
Constructors
Constructor | Description |
---|---|
MaxiSetsEncoding() |
Fields
Field | Description |
---|---|
LatchAfromCDE | Latch A from sets C, D or E |
Methods
Method | Description |
---|---|
encodeCodeSetA(String text, List |
Encode a part of input text from index with codeset A and return next codeset and index. |
encodeCodeSetB(String text, List |
Encode a part of input text from index with codeset B and return next codeset and index. |
encodeCodeSetCDorE(String text, int codeSet, List |
Encode a part of input text from index with codeset C, D or E and return next codeset and index. |
equals(Object arg0) | |
getClass() | |
hashCode() | |
isCodesetA(String text) | Is all chars from text belong to codeset A |
notify() | |
notifyAll() | |
toString() | |
wait() | |
wait(long arg0) | |
wait(long arg0, int arg1) |
MaxiSetsEncoding()
public MaxiSetsEncoding()
LatchAfromCDE
public static final byte LatchAfromCDE
Latch A from sets C, D or E
encodeCodeSetA(String text, List codeWords, int[] index)
public static int encodeCodeSetA(String text, List<Integer> codeWords, int[] index)
Encode a part of input text from index with codeset A and return next codeset and index. Put result to codewords
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Input text |
codeWords | java.util.List<java.lang.Integer> | Codewords |
index | int[] | An index |
Returns: int - Next codeset
encodeCodeSetB(String text, List codeWords, int[] index)
public static int encodeCodeSetB(String text, List<Integer> codeWords, int[] index)
Encode a part of input text from index with codeset B and return next codeset and index. Put result to codewords
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Input text |
codeWords | java.util.List<java.lang.Integer> | Codewords |
index | int[] | An index |
Returns: int - Next codeset
encodeCodeSetCDorE(String text, int codeSet, List codeWords, int[] index, int[] nextCodeSet)
public static boolean encodeCodeSetCDorE(String text, int codeSet, List<Integer> codeWords, int[] index, int[] nextCodeSet)
Encode a part of input text from index with codeset C, D or E and return next codeset and index. Put result to codewords
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | Input text |
codeSet | int | Input codeset |
codeWords | java.util.List<java.lang.Integer> | Codewords |
index | int[] | An index |
nextCodeSet | int[] | Next codeset |
Returns: boolean - Is encoded
equals(Object arg0)
public boolean equals(Object arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | java.lang.Object |
Returns: boolean
getClass()
public final native Class<?> getClass()
Returns: java.lang.Class>
hashCode()
public native int hashCode()
Returns: int
isCodesetA(String text)
public static boolean isCodesetA(String text)
Is all chars from text belong to codeset A
Parameters:
Parameter | Type | Description |
---|---|---|
text | java.lang.String | A text |
Returns: boolean - Is char belongs to codeset A
notify()
public final native void notify()
notifyAll()
public final native void notifyAll()
toString()
public String toString()
Returns: java.lang.String
wait()
public final void wait()
wait(long arg0)
public final native void wait(long arg0)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long |
wait(long arg0, int arg1)
public final void wait(long arg0, int arg1)
Parameters:
Parameter | Type | Description |
---|---|---|
arg0 | long | |
arg1 | int |