Use BufferedReader, BufferedInputStream in Java

preview_player
Показать описание
Use BufferedReader, BufferedInputStream, InputStream, InputStreamReader, and StringBuilder to connect to internet data from a JEE Microservices app.
Рекомендации по теме
Комментарии
Автор

Starting at 15:30 into the video, you show adding the exception. You do not mention it needs to be made in the test cases.


Consider marking one of the beans as @Primary, updating the consumer to accept multiple beans, or using @Qualifier to identify the bean that should be consumed

sandman
Автор

Do you have to read as bytes before reading as characters or can you skip and just read as characters (if your list is just a list of words)?

johnnywu
Автор

Noice -- also, be sure to close the InputStream using `inputStream.close()`. Memory leaks have crashed websites in the past (looking at you, Healthcare.gov!)

vismarkjuarez