/** Creates a smile pipe from an {@link InputStream}. */
  public static Pipe newPipe(InputStream in, boolean numeric) throws IOException {
    final IOContext context = new IOContext(DEFAULT_SMILE_FACTORY._getBufferRecycler(), in, false);
    final SmileParser parser = newSmileParser(in, context.allocReadIOBuffer(), 0, 0, true, context);

    return JsonIOUtil.newPipe(parser, numeric);
    // return JsonIOUtil.newPipe(DEFAULT_SMILE_FACTORY.createJsonParser(in), numeric);
  }
  /** Parses the {@code messages} from the stream using the given {@code schema}. */
  public static <T> List<T> parseListFrom(InputStream in, Schema<T> schema, boolean numeric)
      throws IOException {
    final IOContext context = new IOContext(DEFAULT_SMILE_FACTORY._getBufferRecycler(), in, false);
    final SmileParser parser = newSmileParser(in, context.allocReadIOBuffer(), 0, 0, true, context);

    // final SmileParser parser = DEFAULT_SMILE_FACTORY.createJsonParser(in);
    try {
      return JsonIOUtil.parseListFrom(parser, schema, numeric);
    } finally {
      parser.close();
    }
  }
 public ByteSourceJsonBootstrapper(IOContext iocontext, InputStream inputstream)
 {
     _bigEndian = true;
     _bytesPerChar = 0;
     _context = iocontext;
     _in = inputstream;
     _inputBuffer = iocontext.allocReadIOBuffer();
     _inputPtr = 0;
     _inputEnd = 0;
     _inputProcessed = 0;
     _bufferRecyclable = true;
 }