<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Georgia">right - it's unfortunate that FileStream
inherits from Stream because everyone *knows* that
<position> is what it says it is. Until it isn't.</font><br>
</p>
<br>
<div class="moz-cite-prefix">On 1/22/18 7:44 AM, Levente Uzonyi
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:alpine.DEB.2.02.1801221343190.6578@login03.caesar.elte.hu">
<blockquote type="cite" style="color: #000000;">
<blockquote type="cite" style="color: #000000;"><br>
can you add a comment to the method near the sending of
position that explains? e.g. "send position so that this
works with multibyte rncodings such as UTF8". Otherwise the
temptation may remain to repeat the mistake.
<br>
</blockquote>
<br>
That's one reason why I always prefer accessors over direct
inst-vars ;P
<br>
</blockquote>
<br>
The sole reason the accessor must be used in this case is the
misuse of inheritance.
</blockquote>
<br>
</body>
</html>