001package org.unix4j.io;
002
003/**
004 * Input device reading from the {@link System#in standard input} stream.
005 */
006public class StdInput extends StreamInput {
007        
008        /**
009         * The singleton instance.
010         */
011        public static final StdInput INSTANCE = new StdInput();
012        
013        /**
014         * Default constructor, application code should use the singleton {@link #INSTANCE}.
015         */
016        public StdInput() {
017                super(System.in);
018        }
019
020        @Override
021        public String toString() {
022                return "/std/stdin";
023        }
024}