-
Notifications
You must be signed in to change notification settings - Fork 0
Best Practices
Groundbreaking edited this page Aug 29, 2025
·
1 revision
- ✅ Text parsing and processing
- ✅ Large file streaming
- ✅ Performance-critical applications
- ✅ Custom format parsing
- ✅ Simple file reading (
Files.readString()) - ✅ Basic line processing (
Files.readAllLines()) - ✅ Thread-safe requirements
- Use
readWhile()instead of manual loops - Leverage
peekAhead()for pattern matching - Use
mark()/reset()sparingly (has cost) - Close
FileCharSourcewith try-with-resources