public static Pipe newPipe(InputStream in, boolean numeric) throws IOException
    {
        final IOContext context = new IOContext(DEFAULT_JSON_FACTORY._getBufferRecycler(),
                in, false);
        final JsonParser parser = newJsonParser(in, context.allocReadIOBuffer(), 0, 0,
                true, context);

        return newPipe(parser, numeric);
    }
Creates a json pipe from an {@link InputStream}.
protostuff-json/src/main/java/io/protostuff/JsonIOUtil.java