How dinotaurent/jbase64-decoder works
JBase64 Decoder is a Spring Shell utility that reads Base64 documents from ingreso.txt, decodes them into text files, and optionally packages them as a ZIP. The user starts the workflow with the generar command; its handler prepares output directories, extracts document values, and delegates generation to the service. The service clears prior outputs, writes decoded files, prompts before compression, and builds the archive when requested. Internal steps share the service source file. The excerpts show these calls, but not Spring’s runtime command-registration wiring.
Main entry points: ShellService.java Shell service · ShellCommands.java Generate command · Jbase64DecoderApplication.java Spring Boot app
Components 8
Other components
- Console user
- Spring Boot app
src/main/java/com/dinotaurent/jbase64_decoder/Jbase64DecoderApplication.java - Generate command
src/main/java/com/dinotaurent/jbase64_decoder/command/ShellCommands.java - Shell service
src/main/java/com/dinotaurent/jbase64_decoder/service/ShellService.java - JSON input
- Text outputs
- ZIP prompt
src/main/java/com/dinotaurent/jbase64_decoder/service/ShellService.java - ZIP archive
Connections 11
- Spring Boot app → Generate command: registers command
- Console user → Generate command: runs command
src/main/java/com/dinotaurent/jbase64_decoder/command/ShellCommands.java - Generate command → Shell service: prepares folders
src/main/java/com/dinotaurent/jbase64_decoder/command/ShellCommands.java - Generate command → Shell service: extracts documents
src/main/java/com/dinotaurent/jbase64_decoder/command/ShellCommands.java - Generate command → Shell service: generates files
src/main/java/com/dinotaurent/jbase64_decoder/command/ShellCommands.java - Shell service → JSON input: reads JSON
src/main/java/com/dinotaurent/jbase64_decoder/service/ShellService.java - Shell service → Text outputs: writes decoded text
src/main/java/com/dinotaurent/jbase64_decoder/service/ShellService.java - Shell service → ZIP prompt: asks ZIP choice
src/main/java/com/dinotaurent/jbase64_decoder/service/ShellService.java - ZIP prompt → Console user: reads response
src/main/java/com/dinotaurent/jbase64_decoder/service/ShellService.java - Shell service → Text outputs: reads text files
src/main/java/com/dinotaurent/jbase64_decoder/service/ShellService.java - Shell service → ZIP archive: writes ZIP
src/main/java/com/dinotaurent/jbase64_decoder/service/ShellService.java