Learn how an InputStreamReader builds on an InputStream to assist when working with streams of characters.
Search Results for: input
Reading a .gz File Line by Line Using GZIPInputStream
Sometimes, we need to read compressed .gz files in Java. Learn to use Java’s built in stream libraries to read from gzip format files.
Read Input Character-by-Character in Java
Explore diverse methods in Java for reading characters, covering interactive console input using BufferedReader, file-based character reading with FileReader, and tokenized input handling via Scanner.
Skip Bytes in InputStream in Java
Learn how to use the skip() method to skip bytеs within a Java InputStrеam.
Difference Between ZipFile and ZipInputStream in Java
Learn how to use ZipFile and ZipInputStream to read zip files, explore their functional differences, and evaluate their performance.
Throw Exception for Unexpected Input for Enum With MapStruct
Learn how to map one enum to another with MapStruct.
Java IllegalStateException: “getInputStream() has already been called for this request”
Learn what causes IllegalStateException when we call the ServletRequest.getReader() method in a Java web application and understand how to fix it.
Add a Checked Attribute to Input Conditionally in Thymeleaf
A quick and practical guide to conditionally adding a checked attribute to input in Thymeleaf.
How to Take Input as String With Spaces in Java Using Scanner?
Learn how to read values containing spaces from a Scanner through examples.
Convert an OutputStream to an InputStream
Explore two approaches to converting an OutputStream to an InputStream: using a byte array and a pipe.
Storing Java Scanner Input in an Array
Learn how to store the input from a Scanner into an array with three different scenarios and examples.
Read Multiple Inputs on the Same Line in Java
Learn how to read multiple inputs on the same line using the Scanner class.
Retrieve the Value of an HTML Input in Selenium WebDriver
Learn how to set up a Selenium project and retrieve the value of an HTML input field from a web page.
VarArgs vs Array Input Parameters in Java
A quick and practical comparison between varargs and arrays as input parameters.
Mocking Java InputStream Object
A quick and practical guide to mocking InputStream objects in Java.
Java Scanner Taking a Character Input
Learn how to take char input using the Java Scanner.
Reading Flux Into a Single InputStream Using Spring Reactive WebClient
Learn how to read Flux into a single InputStream
How to Convert InputStream to Base64 String
Learn how to use Java Streaming IO functions and the built-in Base64 class to load binary data as an InputStream and then convert it to a String.
Read User Input Until a Condition Is Met
Learn how to handle multiple-line user input in Java
SequenceInputStream Class in Java
A quick and practical guide to Java SequenceInputStream class.