private static final class MinimalEncoder.Edge
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static int[] |
allCodewordCapacities |
private int |
cachedTotalSize |
private int |
characterLength |
private int |
fromPosition |
private MinimalEncoder.Input |
input |
private MinimalEncoder.Mode |
mode |
private MinimalEncoder.Edge |
previous |
private static int[] |
rectangularCodewordCapacities |
private static int[] |
squareCodewordCapacities |
Modifier | Constructor and Description |
---|---|
private |
Edge(MinimalEncoder.Input input,
MinimalEncoder.Mode mode,
int fromPosition,
int characterLength,
MinimalEncoder.Edge previous) |
Modifier and Type | Method and Description |
---|---|
(package private) int |
getB256Size() |
(package private) static byte[] |
getBytes(int c) |
(package private) static byte[] |
getBytes(int c1,
int c2) |
private static int |
getC40Value(boolean c40,
int setIndex,
char c,
int fnc1) |
(package private) byte[] |
getC40Words(boolean c40,
int fnc1) |
(package private) int |
getCodewordsRemaining(int minimum)
Returns the remaining capacity in codewords of the smallest symbol that has enough capacity to fit the given
minimal number of codewords.
|
(package private) byte[] |
getDataBytes() |
(package private) byte[] |
getEDFBytes() |
(package private) MinimalEncoder.Mode |
getEndMode()
Returns Mode.ASCII in case that:
- Mode is EDIFACT and characterLength is less than 4 or the remaining characters can be encoded in at most 2
ASCII bytes.
|
(package private) int |
getLastASCII()
Peeks ahead and returns 1 if the postfix consists of exactly two digits, 2 if the postfix consists of exactly
two consecutive digits and a non extended character or of 4 digits.
|
(package private) byte[] |
getLatchBytes() |
(package private) int |
getMinSymbolSize(int minimum)
Returns the capacity in codewords of the smallest symbol that has enough capacity to fit the given minimal
number of codewords.
|
(package private) MinimalEncoder.Mode |
getMode() |
(package private) MinimalEncoder.Mode |
getPreviousMode() |
(package private) MinimalEncoder.Mode |
getPreviousStartMode() |
(package private) static int |
getShiftValue(char c,
boolean c40,
int fnc1) |
private static int |
getX12Value(char c) |
(package private) byte[] |
getX12Words() |
(package private) static void |
setC40Word(byte[] bytes,
int offset,
int c1,
int c2,
int c3) |
private static final int[] allCodewordCapacities
private static final int[] squareCodewordCapacities
private static final int[] rectangularCodewordCapacities
private final MinimalEncoder.Input input
private final MinimalEncoder.Mode mode
private final int fromPosition
private final int characterLength
private final MinimalEncoder.Edge previous
private final int cachedTotalSize
private Edge(MinimalEncoder.Input input, MinimalEncoder.Mode mode, int fromPosition, int characterLength, MinimalEncoder.Edge previous)
int getB256Size()
MinimalEncoder.Mode getPreviousStartMode()
MinimalEncoder.Mode getPreviousMode()
MinimalEncoder.Mode getEndMode()
MinimalEncoder.Mode getMode()
int getLastASCII()
int getMinSymbolSize(int minimum)
int getCodewordsRemaining(int minimum)
static byte[] getBytes(int c)
static byte[] getBytes(int c1, int c2)
static void setC40Word(byte[] bytes, int offset, int c1, int c2, int c3)
private static int getX12Value(char c)
byte[] getX12Words()
static int getShiftValue(char c, boolean c40, int fnc1)
private static int getC40Value(boolean c40, int setIndex, char c, int fnc1)
byte[] getC40Words(boolean c40, int fnc1)
byte[] getEDFBytes()
byte[] getLatchBytes()
byte[] getDataBytes()