Package pal.io
Class InputSource
java.lang.Object
java.io.Reader
java.io.FilterReader
java.io.PushbackReader
pal.io.InputSource
- All Implemented Interfaces:
Closeable,AutoCloseable,Readable
convenience class to open input streams
linked to files, stdin, and strings
- Version:
- $Id: InputSource.java,v 1.4 2001/07/13 14:39:13 korbinian Exp $
- Author:
- Korbinian Strimmer
-
Field Summary
Fields inherited from class java.io.FilterReader
in -
Method Summary
Modifier and TypeMethodDescriptionstatic InputSourceopen file for readingstatic InputSourceopen standard inputstatic InputSourceopenString(String input) "open" string for readingMethods inherited from class java.io.PushbackReader
close, mark, markSupported, read, read, ready, reset, skip, unread, unread, unreadMethods inherited from class java.io.Reader
nullReader, read, read, transferTo
-
Method Details
-
openFile
open file for reading- Parameters:
name- file name- Returns:
- input stream
- Throws:
FileNotFoundException
-
openStdIn
open standard input- Returns:
- input stream
-
openString
"open" string for reading- Parameters:
input- string serving as source- Returns:
- input stream
-