[
https://issues.apache.org/jira/browse/IO-341?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13430937#comment-13430937
]
Joerg Schaible commented on IO-341:
-----------------------------------
OK, I understand your purpose now. I think we agree, that your example works
only for UTF charsets and that it is not really useful for readers - either you
know the charset in advance or the first character does not match the constant.
I'd still use a different name though. In case of a static import (yeah, I
don't like them, nevertheless ...), it's confusing. I'd take at least BOM_CHAR
or BOM only (since it is defined as char).
> A constant for holding the BOM character (U+FEFF)
> --------------------------------------------------
>
> Key: IO-341
> URL: https://issues.apache.org/jira/browse/IO-341
> Project: Commons IO
> Issue Type: Improvement
> Components: Streams/Writers
> Reporter: Yaniv Kunda
> Priority: Minor
> Attachments: ByteOrderMark-char.patch
>
>
> This can be useful when working with readers/writers -
> can be put as a constant in ByteOrderMark, for example.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira