Package org.bson.io

Examples of org.bson.io.BasicOutputBuffer


    }

    @Test(expected = BSONException.class)
    public void nullCharacterInRegexStringShouldThrowException() {
        BasicBSONEncoder encoder = new BasicBSONEncoder();
        encoder.set(new BasicOutputBuffer());
        encoder._putObjectField("key", Pattern.compile("hello\u0000World"));
    }
View Full Code Here


    }

    @Test
    public void nullCharacterInStringShouldNotThrowException() {
        BasicBSONEncoder encoder = new BasicBSONEncoder();
        encoder.set(new BasicOutputBuffer());
        encoder.putString("key", "hell\u0000world");
    }
View Full Code Here

TOP

Related Classes of org.bson.io.BasicOutputBuffer

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.