This paper presented an encapsulating and nested class method to map the COBOL data to Java type system with functional equivalence.This method was applied in the COBOL2 Java translation system and it was also applied to a real business system of about 4 million lines of COBOL code.Test results show that this method is sound and effective, and the resulting Java code can run efficiently with easy maintenance.