Learn how character encoding works and explore why String.length() and String.getBytes().length can produce different results.
Search Results for: bytes
Skip Bytes in InputStream in Java
Learn how to use the skip() method to skip bytеs within a Java InputStrеam.
Java String.getBytes()
A quick example and explanation of the getBytes API of the standard String class in Java.
Convert InputStream to Stream in Java
Learn how to take an InputStream and convert it into a functional Stream in Java.
Converting short to byte[] in Java
Learn how to convert a short value to a byte[] array.
Introduction to Java 22
Explore the latest Java release, Java 22, which is now in General Availability.
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.
Introduction to Simple Java Mail
Explore the process of setting up Simple Java Mail and learn how to send emails, including attachments and HTML content, handle exceptions, and more.
Download File from S3 Given a URL
Learn how to download a file from S3 given a URL with Java and AWS SDK.
PrintWriter write() vs print() Method in Java
Discover the differences between PrintWriter’s write() and print() methods.
Introduction to Brave
Explore Brave, a popular distributed tracing instrumentation library in the Java ecosystem.
Get the Response Body in Spring Boot Filter
Learn to retrieve the response body from a ServletResponse in a Spring Boot filter.
Intro to the Apache Commons Compress Project
In this tutorial, we explore Apache Commons Compress, a library for file compression, archiving, and extraction. It supports various formats like TAR, ZIP, GZIP, BZIP2, and more.
Create and Run Apache JMeter Test Scripts via Java Program
Learn how to create and execute Apache JMeter test scripts programmatically using the JMeter Java API.
Java InputStream vs. InputStreamReader
Learn how an InputStreamReader builds on an InputStream to assist when working with streams of characters.
Converting UTF-8 to ISO-8859-1 in Java
Explore two approaches for converting UTF-8 encoded strings to ISO-8859-1.
Creating a Spring Security Key for Signing a JWT Token
In this tutorial, we learn how to sign and verify a JWT token in Spring Boot.
Blowfish Encryption Algorithm
Learn how to implement encryption and decryption using Blowfish ciphers with the Java Cryptography Architecture (JCA).
Serialization with FlatBuffers in Java
Explore the FlatBuffers library and its capabilities to serialize and deserialize complex data.