mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
rename package
This commit is contained in:
parent
64662d8449
commit
3b02bd3952
@ -17,7 +17,7 @@
|
||||
* under the License.
|
||||
*/
|
||||
|
||||
package org.elasticsearch.common.xcontent.xson;
|
||||
package org.elasticsearch.common.xcontent.smile;
|
||||
|
||||
import org.elasticsearch.common.io.FastByteArrayOutputStream;
|
||||
import org.elasticsearch.common.xcontent.XContentFactory;
|
||||
@ -36,6 +36,15 @@ import static org.hamcrest.Matchers.*;
|
||||
*/
|
||||
public class JsonVsSmileTests {
|
||||
|
||||
// @Test public void testBinarySmileField() throws Exception {
|
||||
// JsonGenerator gen = new SmileFactory().createJsonGenerator(new ByteArrayOutputStream());
|
||||
//// JsonGenerator gen = new JsonFactory().createJsonGenerator(new ByteArrayOutputStream(), JsonEncoding.UTF8);
|
||||
// gen.writeStartObject();
|
||||
// gen.writeFieldName("field1");
|
||||
// gen.writeBinary(new byte[]{1, 2, 3});
|
||||
// gen.writeEndObject();
|
||||
// }
|
||||
|
||||
@Test public void compareParsingTokens() throws IOException {
|
||||
FastByteArrayOutputStream xsonOs = new FastByteArrayOutputStream();
|
||||
XContentGenerator xsonGen = XContentFactory.xContent(XContentType.SMILE).createGenerator(xsonOs);
|
Loading…
x
Reference in New Issue
Block a user