private static void dumpData()

in fop-core/src/main/codegen/unicode/java/org/apache/fop/complexscripts/bidi/GenerateBidiClass.java [296:419]


    private static void dumpData(PrintWriter out) {
        boolean first;
        StringBuffer sb = new StringBuffer();

        // bcL1
        first = true;
        sb.setLength(0);
        out.println("private static byte[] bcL1 = {");
        for (int i = 0; i < bcL1.length; i++) {
            if (!first) {
                sb.append(",");
            } else {
                first = false;
            }
            sb.append(bcL1[i]);
            if (sb.length() > 120) {
                sb.append(',');
                out.println(sb);
                first = true;
                sb.setLength(0);
            }
        }
        if (sb.length() > 0) {
            out.println(sb);
        }
        out.println("};");
        out.println();

        // bcR1
        first = true;
        sb.setLength(0);
        out.println("private static byte[] bcR1 = {");
        for (int i = 0; i < bcR1.length; i++) {
            if (!first) {
                sb.append(",");
            } else {
                first = false;
            }
            sb.append(bcR1[i]);
            if (sb.length() > 120) {
                sb.append(',');
                out.println(sb);
                first = true;
                sb.setLength(0);
            }
        }
        if (sb.length() > 0) {
            out.println(sb);
        }
        out.println("};");
        out.println();

        // bcS1
        first = true;
        sb.setLength(0);
        out.println("private static int[] bcS1 = {");
        for (int i = 0; i < bcS1.length; i++) {
            if (!first) {
                sb.append(",");
            } else {
                first = false;
            }
            sb.append(bcS1[i]);
            if (sb.length() > 120) {
                sb.append(',');
                out.println(sb);
                first = true;
                sb.setLength(0);
            }
        }
        if (sb.length() > 0) {
            out.println(sb);
        }
        out.println("};");
        out.println();

        // bcE1
        first = true;
        sb.setLength(0);
        out.println("private static int[] bcE1 = {");
        for (int i = 0; i < bcE1.length; i++) {
            if (!first) {
                sb.append(",");
            } else {
                first = false;
            }
            sb.append(bcE1[i]);
            if (sb.length() > 120) {
                sb.append(',');
                out.println(sb);
                first = true;
                sb.setLength(0);
            }
        }
        if (sb.length() > 0) {
            out.println(sb);
        }
        out.println("};");
        out.println();

        // bcC1
        first = true;
        sb.setLength(0);
        out.println("private static byte[] bcC1 = {");
        for (int i = 0; i < bcC1.length; i++) {
            if (!first) {
                sb.append(",");
            } else {
                first = false;
            }
            sb.append(bcC1[i]);
            if (sb.length() > 120) {
                sb.append(',');
                out.println(sb);
                first = true;
                sb.setLength(0);
            }
        }
        if (sb.length() > 0) {
            out.println(sb);
        }
        out.println("};");
        out.println();
    }