Learn Java Programming - FileReader Tutorial

Опубликовано: 13 Декабрь 2015
на канале: Daniel Ross
2,694
31

The purpose of the FileReader class is to simply read character based files. The FileReader class implements AutoClosable so we can use the try-with-resources type exception handling. There are three overloaded constructors in the FileReader class, this tutorial will use only the one that takes a single parameter String value representing the file name. Regarding the other two constructors, I will revisit this class later once I have demonstrated the File and FileDescriptor classes. It also interesting to note that the FileReader class does not define or override any public methods, so it inherits all of its methods from its superclass InputStreamReader; InputStreamReader is a subclass of Reader which is a subclass of Object and that describes the class hierarchy.


На этой странице сайта вы можете посмотреть видео онлайн Learn Java Programming - FileReader Tutorial длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Daniel Ross 13 Декабрь 2015, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,694 раз и оно понравилось 31 зрителям. Приятного просмотра!