On 25.03.2015, at 01:26, Bertrand Delacretaz <bdelacre...@apache.org> wrote: > Sounds good to me but how do you define "text file" in this context? > > Mime type, filename, sniffing? A pluggable way of doing that would be best.
No need for detecting a text file, the application requests it with adaptTo(Reader.class), if that provides a broken stream because the binary is not a text file, then it's a problem of the application. Just a little utility helper here. Cheers, Alex