>>573
ファイルからの入力はFileInputStreamを使って、
キーボードからの入力はSystem.in(実体はInputStream)を使う
ということではない?

つまり、main()で全部やるんじゃなくて、

class Hoge{
 private BufferedInputStream bufferedInputStream;
 public Hoge(){
  bufferedInputStream = new BufferedInputStream(System.in);
 }
 public Hoge(InputStream is){
  bufferedInputStream = new BufferedInputStream(is);
 }
 public String readUpperCasedLine(){
  String line = bufferedInputStream.readLine();
  return line.toUpperCase();
 }

 public static void main(Strng[] args){
  Hoge hoge = new Hoge();
  System.out.println(hoge.readUpperCasedLine());
 }
}

とかやって、InputStreamを渡せるようにしろということでは。
コードは適当なので作るときはちゃんと考えてね。