@Test public void testConvertFlat01() { Cob2HashMapConverter converter = new Cob2HashMapConverter.Builder() .cobolComplexType(new com.legstar.base.type.gen.CobolFlat01Record()) .build(); FromHostResult < Map <String, Object> > result = converter.convert( HexUtils.decodeHex("F0F0F1F0F4F3D5C1D4C5F0F0F0F0F4F3404040404040404040400215000F")); assertEquals(30, result.getBytesProcessed()); assertEquals("{comNumber=1043, comName=NAME000043, comAmount=2150.00}", result.getValue().toString()); }
@SuppressWarnings("unchecked") public FromHostResult < Map < String, Object > > convert(byte[] hostData, int start, int length) { Cob2ObjectVisitor visitor = new Cob2ObjectVisitor(getCobolContext(), hostData, start, length, getCustomChoiceStrategy(), getCustomVariables()); visitor.visit(getCobolComplexType()); return new FromHostResult < Map < String, Object > >( visitor.getLastPos(), (Map < String, Object >) visitor.getResultObject()); }
Cob2HashMapConverter extends
        AbstractCob2ObjectConverter < Map < String, Object >> { @SuppressWarnings("unchecked") public FromHostResult < Map < String, Object > > convert(byte[] hostData, int start, int length) { Cob2ObjectVisitor visitor = new Cob2ObjectVisitor(getCobolContext(), hostData, start, length, getCustomChoiceStrategy(), getCustomVariables()); visitor.visit(getCobolComplexType()); return new FromHostResult < Map < String, Object > >( visitor.getLastPos(), (Map < String, Object >) visitor.getResultObject()); } }
Cob2HashMapConverter extends
        AbstractCob2ObjectConverter < Map < String, Object >> { @SuppressWarnings("unchecked") public FromHostResult < Map < String, Object > > convert(byte[] hostData, int start, int length) { Cob2ObjectVisitor visitor = new Cob2ObjectVisitor(getCobolContext(), hostData, start, length, getCustomChoiceStrategy(), getCustomVariables()); visitor.visit(getCobolComplexType()); return new FromHostResult < Map < String, Object > >( visitor.getLastPos(), (Map < String, Object >) visitor.getResultObject()); } private  Cob2HashMapConverter(Builder builder); }
Cob2HashMapConverter extends
        AbstractCob2ObjectConverter < Map < String, Object >> { @SuppressWarnings("unchecked") public FromHostResult < Map < String, Object > > convert(byte[] hostData, int start, int length) { Cob2ObjectVisitor visitor = new Cob2ObjectVisitor(getCobolContext(), hostData, start, length, getCustomChoiceStrategy(), getCustomVariables()); visitor.visit(getCobolComplexType()); return new FromHostResult < Map < String, Object > >( visitor.getLastPos(), (Map < String, Object >) visitor.getResultObject()); } private  Cob2HashMapConverter(Builder builder); @SuppressWarnings("unchecked") FromHostResult < Map < String, Object > > convert(byte[] hostData,
            int start, int length); }
Cob2HashMapConverter extends
        AbstractCob2ObjectConverter < Map < String, Object >> { @SuppressWarnings("unchecked") public FromHostResult < Map < String, Object > > convert(byte[] hostData, int start, int length) { Cob2ObjectVisitor visitor = new Cob2ObjectVisitor(getCobolContext(), hostData, start, length, getCustomChoiceStrategy(), getCustomVariables()); visitor.visit(getCobolComplexType()); return new FromHostResult < Map < String, Object > >( visitor.getLastPos(), (Map < String, Object >) visitor.getResultObject()); } private  Cob2HashMapConverter(Builder builder); @SuppressWarnings("unchecked") FromHostResult < Map < String, Object > > convert(byte[] hostData,
            int start, int length);  }