Interface Input
public interface Input
Static methods that return the InputStream/Reader of a file or URL.
-
Method Summary
Static MethodsModifier and TypeMethodDescriptionstatic BufferedReaderReturns the reader of a file path or URI.static BufferedReaderReturns the reader of a file path or URI.static InputStreamReturns 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.
-