Endianness Changer is a JavaFX application designed to convert binary files between Big-Endian and Little-Endian formats. It is particularly useful for programming languages that lack built-in endianness conversion functions, unlike Java's ByteBuffer class, which simplifies such operations.
The program supports binary files with the following requirements:
- No header
- No trailer
- No separator
- Converts binary files between Big-Endian and Little-Endian formats.
- Supports various data type sizes (e.g., 16-bit, 64-bit).
- Allows batch file selection and conversion.
- User-friendly JavaFX interface with options to specify output format (uppercase or lowercase).
- Exports converted files to a user-specified directory.
In Java, endianness conversion is straightforward using the ByteBuffer class. Below are examples for reference:
byte[] buffer = new byte[2];
// Fill buffer with data
ByteBuffer bb = ByteBuffer.wrap(buffer);
short result = bb.order(ByteOrder.BIG_ENDIAN).getShort();byte[] buffer = new byte[8];
// Fill buffer with data
ByteBuffer bb = ByteBuffer.wrap(buffer);
double result = bb.order(ByteOrder.LITTLE_ENDIAN).getDouble();For languages without such utilities, Endianness Changer provides a simple solution to convert binary files.
- Select the directory containing the input binary files.
- Choose the files to convert.
- Specify the output format (uppercase or lowercase).
- Select the data type size (e.g., 16-bit or 64-bit).
- Choose a different directory to save the converted files (avoid using the input directory).
- Start the conversion process and wait for completion.
This project was developed using the following tools and frameworks:
- Apache NetBeans 27 IDE: NetBeans 27
- Java SDK: JDK 24
- SceneBuilder: Gluon SceneBuilder for GUI development
- JavaFX SDK: JavaFX
