Learn how to take an InputStream and convert it into a functional Stream in Java.
Search Results for: bytearray
Converting short to byte[] in Java
Learn how to convert a short value to a byte[] array.
How to Test a Spring AOP Aspect
Learn how to conduct unit and integration tests on Spring AOP aspects.
How to Fix EOFException in Java
In this quick tutorial, we learn how to fix the java.io.EOFException, a special type of IOException.
Compress and Create a Byte Array Using GZip
Learn how to get the compressed data in a byte array when using the GZIP file format.
Download File from S3 Given a URL
Learn how to download a file from S3 given a URL with Java and AWS SDK.
Get the Response Body in Spring Boot Filter
Learn to retrieve the response body from a ServletResponse in a Spring Boot filter.
Java InputStream vs. InputStreamReader
Learn how an InputStreamReader builds on an InputStream to assist when working with streams of characters.
How to Mock Amazon S3 for Integration Test
Learn how to mock Amazon’s Simple Storage Service in integration tests.
Guide to System.in.read()
Learn how to use Java’s System.in.read().
Creating a Custom URL Connection
Explore the process of creating a custom URL connection in Java to overcome the limitations associated with the default URLConnection class.
Storing UUID as Base64 String in Java
Learn how to store UUID as Base64 String using different approaches in Java.
Monkey Patching in Java
Learn how monkey patching can be used in Java, when to use it, and its drawbacks.
Convert byte[] to Byte[] and Vice Versa in Java
Learn several approaches to converting byte arrays to Byte arrays and vice versa in Java.
Enable Java SSL Debug Logging
Learn how to enable SSL Debug Logging in Java to enhance visibility into your application’s SSL-related activities.
Check if a Float Value is Equivalent to an Integer Value in Java
Explore various approaches to check if a float value is equivalent to an integer value in Java.
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.
Compress and Uncompress Byte Array Using Deflater/Inflater
A quick and practical guide to compressing/uncompressing a byte array using the Deflater/Inflater classes.
UTF-8 Validation in Java
Explore UTF-8 encoded bytes and string conversion and different types of UTF-8 validation based on byte and stream.
Convert Byte Array to JSON and Vice Versa in Java
Learn how to quickly convert a byte array to JSON and vicе vеrsa in Java.