All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.infinispan.cli.util.JsonReaderIterable Maven / Gradle / Ivy

package org.infinispan.cli.util;

import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.Reader;
import java.util.Iterator;
import java.util.Map;

/**
 * @author Tristan Tarrant <[email protected]>
 * @since 10.0
 **/
public class JsonReaderIterable implements Iterable> {

   private final JsonReaderIterator iterator;

   public JsonReaderIterable(InputStream is) throws IOException {
      this(new InputStreamReader(is));
   }

   public JsonReaderIterable(Reader r) throws IOException {
      this.iterator = new JsonReaderIterator(r);
   }

   @Override
   public Iterator> iterator() {
      return iterator;
   }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy