Package org.milyn.delivery.sax

Examples of org.milyn.delivery.sax.TrackedStringWriter$WriteRecord


*/
public class MILYN238Test extends TestCase {

    public void test() throws IOException {
        char[] text = "abcdefghijklmnopqrstuvwxyz".toCharArray();
        TrackedStringWriter writer = new TrackedStringWriter();

        writer.write(text, 0, 5);
        writer.write(text, 0, 5);
        writer.write(text, 0, 5);
        writer.write(text, 5, 5);
        writer.write(text, 10, 5);
        writer.write(text, 0, 5);
        writer.write(text, 10, 5);
        writer.write(text, 0, 5);
        writer.write(text, 15, 5);

        assertEquals("abcdefghijklmnopqrst", writer.toString());
    }
View Full Code Here

TOP

Related Classes of org.milyn.delivery.sax.TrackedStringWriter$WriteRecord

Copyright © 2018 www.massapicom. 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.