TextFileDecoder: make it package local, implement Closeable