Package smile.io
Interface Input
public interface Input
Static methods that return the InputStream/Reader of a file or URL.
-
Method Summary
Modifier and TypeMethodDescriptionstatic BufferedReader
Returns the reader of a file path or URI.static BufferedReader
Returns the reader of a file path or URI.static InputStream
Returns the input stream of a file path or URI.
-
Method Details
-
reader
Returns the reader of a file path or URI.- Parameters:
path
- the input file path.- Returns:
- the file reader.
- Throws:
IOException
- when fails to read the file.URISyntaxException
- when the file path syntax is wrong.
-
reader
Returns the reader of a file path or URI.- Parameters:
path
- the input file path.charset
- the charset of file.- Returns:
- the file reader.
- Throws:
IOException
- when fails to read the file.URISyntaxException
- when the file path syntax is wrong.
-
stream
Returns the input stream of a file path or URI.- Parameters:
path
- the input file path.- Returns:
- the file input stream.
- Throws:
IOException
- when fails to read the file.URISyntaxException
- when the file path syntax is wrong.
-