Skip to content
This repository was archived by the owner on Jun 3, 2026. It is now read-only.

Commit 3c4c251

Browse files
committed
Better BOM docs.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1638121 13f79535-47bb-0310-9956-ffa450edef68
1 parent 6757944 commit 3c4c251

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/site/xdoc/user-guide.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,15 @@ try {
4949
} finally {
5050
parser.close();
5151
reader.close();
52+
}</source>
53+
<p>
54+
You might find it handy to create something like this:
55+
</p>
56+
<source>/**
57+
* Creates a reader capable of handling BOMs.
58+
*/
59+
public InputStreamReader newReader(final InputStream inputStream) {
60+
return new InputStreamReader(new BOMInputStream(inputStream), StandardCharsets.UTF_8);
5261
}</source>
5362
</section>
5463
<section name="Printing with headers">

0 commit comments

Comments
 (0)