![JAR search and dependency download from the Maven repository](/logo.png)
io.xlate.edi.internal.stream.tokenization.CharacterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of staedi Show documentation
Show all versions of staedi Show documentation
Streaming API for EDI for Java
/*******************************************************************************
* Copyright 2017 xlate.io LLC, http://www.xlate.io
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
******************************************************************************/
package io.xlate.edi.internal.stream.tokenization;
public enum CharacterClass {
/*
* Characters are mapped into these character classes. This allows for a
* significant reduction in the size of the state transition table.
*/
SPACE(0),
LATIN_A(1),
LATIN_B(2),
LATIN_E(3),
LATIN_I(4),
LATIN_N(5),
LATIN_S(6),
LATIN_U(7),
LATIN_Z(8),
ALPHANUMERIC(9),
SEGMENT_DELIMITER(10),
ELEMENT_DELIMITER(11),
COMPONENT_DELIMITER(12),
ELEMENT_REPEATER(13),
RELEASE_CHARACTER(14),
WHITESPACE(15), /* Other white space */
CONTROL(16), /* Control Characters */
OTHER(17), /* Everything else */
INVALID(18);
protected final int code;
private CharacterClass(int code) {
this.code = code;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy