Docsity

Identificación de formatos de archivos binarios en Java, Ejercicios de Programación Java

Toggle sidebar
bg1
Activity: Binary files
Develop a Java application that reads the contents of each of the files located in a given
folder, identify the format and assign the corresponding extension according to the
established file signature. The file formats that the application must recognize are:
File extension
File description
1
rar
RAR file format
2
7z
7-Zip file format
3
bmp
Bitmap image format
4
jpg
JPEG image format
5
png
PNG image format
6
gif
GIF image format
7
pdf
PDF document format
8
mp3
MP3 audio format
9
m4a
AAC audio format
10
zip
PKZIP file format
Generate an output file with the name “Report.csv” and the next structure:
Old filename
New filename

Vista previa parcial del texto

¡Descarga Identificación de formatos de archivos binarios en Java y más Ejercicios en PDF de Programación Java solo en Docsity!

Activity: Binary files

Develop a Java application that reads the contents of each of the files located in a given folder, identify the format and assign the corresponding extension according to the established file signature. The file formats that the application must recognize are: File extension File description 1 rar RAR file format 2 7 z 7 - Zip file format 3 bmp Bitmap image format 4 jpg JPEG image format 5 png PNG image format 6 gif GIF image format 7 pdf PDF document format 8 mp3 MP3 audio format 9 m4a AAC audio format 10 zip PKZIP file format Generate an output file with the name “Report.csv” and the next structure: Old filename New filename