@Test public void testDataCodings00xx() { for (byte dataCodingByte = (byte) 0x00; dataCodingByte < (byte) 0xf0; dataCodingByte++) { DataCoding dataCoding = factory.newInstance(dataCodingByte); assertEquals(dataCoding.toByte(), dataCodingByte); assertEquals(dataCoding.getClass(), GeneralDataCoding.class); } }
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; }