Elliotte Rusty Harold created IO-833:
----------------------------------------
Summary: Every origin needs a charset
Key: IO-833
URL: https://issues.apache.org/jira/browse/IO-833
Project: Commons IO
Issue Type: Bug
Reporter: Elliotte Rusty Harold
Every origin except possibly URIOrigin needs a charset. There is no reliable,
acceptable way to convert bytes to chars (ByteOrigin, PathOrigin) or chars to
bytes (CharSequenceOrigin) without it.
The only possible exception is URIOrigin which can have enough metadata to
usefully deduce the charset.
Methods like getBytes and getReader should throw an IllegalStateException if
charset is needed and not supplied.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)