@Test public void testDataCodingFactory00xxUCS2() { byte expected = (byte) 0x08; DataCoding dataCoding = factory.newInstance(expected); assertEquals(dataCoding.toByte(), expected); assertEquals(Alphabet.parseDataCoding(dataCoding.toByte()), Alphabet.ALPHA_UCS2); }
public DataCoding newInstance(byte dataCoding) { boolean compressed = isCompressed(dataCoding); boolean containMessageClass = DataCodings.containsMessageClass(dataCoding); MessageClass messageClass = null; if (containMessageClass) { messageClass = MessageClass.parseDataCoding(dataCoding); } Alphabet alphabet = Alphabet.parseDataCoding(dataCoding); return new GeneralDataCoding(alphabet, messageClass, compressed); }
DataCodingFactory00xx extends AbstractDataCodingFactory { public DataCoding newInstance(byte dataCoding) { boolean compressed = isCompressed(dataCoding); boolean containMessageClass = DataCodings.containsMessageClass(dataCoding); MessageClass messageClass = null; if (containMessageClass) { messageClass = MessageClass.parseDataCoding(dataCoding); } Alphabet alphabet = Alphabet.parseDataCoding(dataCoding); return new GeneralDataCoding(alphabet, messageClass, compressed); } }
DataCodingFactory00xx extends AbstractDataCodingFactory { public DataCoding newInstance(byte dataCoding) { boolean compressed = isCompressed(dataCoding); boolean containMessageClass = DataCodings.containsMessageClass(dataCoding); MessageClass messageClass = null; if (containMessageClass) { messageClass = MessageClass.parseDataCoding(dataCoding); } Alphabet alphabet = Alphabet.parseDataCoding(dataCoding); return new GeneralDataCoding(alphabet, messageClass, compressed); } DataCodingFactory00xx(); }
DataCodingFactory00xx extends AbstractDataCodingFactory { public DataCoding newInstance(byte dataCoding) { boolean compressed = isCompressed(dataCoding); boolean containMessageClass = DataCodings.containsMessageClass(dataCoding); MessageClass messageClass = null; if (containMessageClass) { messageClass = MessageClass.parseDataCoding(dataCoding); } Alphabet alphabet = Alphabet.parseDataCoding(dataCoding); return new GeneralDataCoding(alphabet, messageClass, compressed); } DataCodingFactory00xx(); DataCoding newInstance(byte dataCoding); static boolean isCompressed(byte dataCoding); @Deprecated boolean isContainMessageClass(byte dataCoding); }
DataCodingFactory00xx extends AbstractDataCodingFactory { public DataCoding newInstance(byte dataCoding) { boolean compressed = isCompressed(dataCoding); boolean containMessageClass = DataCodings.containsMessageClass(dataCoding); MessageClass messageClass = null; if (containMessageClass) { messageClass = MessageClass.parseDataCoding(dataCoding); } Alphabet alphabet = Alphabet.parseDataCoding(dataCoding); return new GeneralDataCoding(alphabet, messageClass, compressed); } DataCodingFactory00xx(); DataCoding newInstance(byte dataCoding); static boolean isCompressed(byte dataCoding); @Deprecated boolean isContainMessageClass(byte dataCoding); static final byte GROUP; static final byte MASK; static final byte MASK_MESSAGE_CLASS; static final byte MASK_COMPRESSED; }