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 InputSource
open file for readingstatic InputSource
open standard inputstatic InputSource
openString
(String input) "open" string for readingMethods inherited from class java.io.PushbackReader
close, mark, markSupported, read, read, ready, reset, skip, unread, unread, unread
Methods 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
-