Package com.higherfrequencytrading.chronicle

Examples of com.higherfrequencytrading.chronicle.Excerpt.writeUTF()


        StringWriter sw = new StringWriter();
        PrintWriter pw = new PrintWriter(sw);
        t.printStackTrace(pw);
        String text = sw.toString();
        Excerpt excerpt = startExceprt(2 + message.length() + 2 + text.length(), 'X');
        excerpt.writeUTF(message);
        excerpt.writeUTF(text);
        excerpt.finish();
    }

    @NotNull
View Full Code Here


        PrintWriter pw = new PrintWriter(sw);
        t.printStackTrace(pw);
        String text = sw.toString();
        Excerpt excerpt = startExceprt(2 + message.length() + 2 + text.length(), 'X');
        excerpt.writeUTF(message);
        excerpt.writeUTF(text);
        excerpt.finish();
    }

    @NotNull
    public Excerpt startExceprt(int capacity, char type) {
View Full Code Here

            for (int j = i; j < i + 16; j++) {
                if (Character.isValidCodePoint(j))
                    sb.appendCodePoint(j);
            }
            excerpt.startExcerpt(2 + sb.length() * 3);
            excerpt.writeUTF(sb);
            excerpt.finish();
        }
        excerpt.startExcerpt(2 + 1);
        excerpt.writeUTF(null);
        excerpt.finish();
View Full Code Here

            excerpt.startExcerpt(2 + sb.length() * 3);
            excerpt.writeUTF(sb);
            excerpt.finish();
        }
        excerpt.startExcerpt(2 + 1);
        excerpt.writeUTF(null);
        excerpt.finish();

        for (int i = Character.MIN_CODE_POINT, n = 0; i <= Character.MAX_CODE_POINT; i += 16, n++) {
            sb.setLength(0);
            for (int j = i; j < i + 16; j++) {
View Full Code Here

        tsc.useUnsafe(USE_UNSAFE);
        tsc.clear();
        Excerpt excerpt = tsc.createExcerpt();
        excerpt.startExcerpt(4);
        String é = "é";
        excerpt.writeUTF(é);
        excerpt.finish();

        assertTrue(excerpt.index(0));
        String e2 = excerpt.readUTF();
        excerpt.finish();
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.