001package org.openimaj.picslurper;
002
003import java.io.InputStream;
004
005/**
006 * A {@link LocalTweetSpout} fed from the stdin
007 * @author Sina Samangooei (ss@ecs.soton.ac.uk)
008 *
009 */
010@SuppressWarnings("serial")
011public class StdinSpout extends LocalTweetSpout {
012
013        private boolean usedSTDIN;
014
015        @Override
016        protected InputStream nextInputStream() throws Exception {
017                if(usedSTDIN) return null;
018                usedSTDIN = true;
019                return System.in;
020        }
021
022}