Package org.onebusaway.utility
Class IOLibrary
- java.lang.Object
-
- org.onebusaway.utility.IOLibrary
-
public class IOLibrary extends Object
-
-
Constructor Summary
Constructors Constructor Description IOLibrary()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BufferedReadergetFileAsBufferedReader(File path)static InputStreamgetFileAsInputStream(File path)static OutputStreamgetFileAsOutputStream(File file)static ReadergetFileAsReader(File path)static WritergetFileAsWriter(File file)static BufferedReadergetPathAsBufferedReader(String path)static InputStreamgetPathAsInputStream(String path)static ReadergetPathAsReader(String path)
-
-
-
Method Detail
-
getPathAsBufferedReader
public static BufferedReader getPathAsBufferedReader(String path) throws IOException
- Throws:
IOException
-
getPathAsReader
public static Reader getPathAsReader(String path) throws IOException
- Throws:
IOException
-
getPathAsInputStream
public static InputStream getPathAsInputStream(String path) throws IOException
- Throws:
IOException
-
getFileAsBufferedReader
public static BufferedReader getFileAsBufferedReader(File path) throws IOException
- Throws:
IOException
-
getFileAsReader
public static Reader getFileAsReader(File path) throws IOException
- Throws:
IOException
-
getFileAsInputStream
public static InputStream getFileAsInputStream(File path) throws IOException
- Throws:
IOException
-
getFileAsOutputStream
public static OutputStream getFileAsOutputStream(File file) throws IOException
- Throws:
IOException
-
getFileAsWriter
public static Writer getFileAsWriter(File file) throws IOException
- Throws:
IOException
-
-