Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #22467
| Path | csiph.com!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail |
|---|---|
| From | qwertmonkey@syberianoutpost.ru |
| Newsgroups | comp.lang.java.programmer |
| Subject | offsets in a FileChannel ... |
| Date | Sat, 23 Feb 2013 14:54:33 +0000 (UTC) |
| Organization | Aioe.org NNTP Server |
| Lines | 21 |
| Message-ID | <kgal78$blo$1@speranza.aioe.org> (permalink) |
| NNTP-Posting-Host | jcJFTAhAdFLWfAXONlzC5w.user.speranza.aioe.org |
| X-Complaints-To | abuse@aioe.org |
| X-Notice | Filtered by postfilter v. 0.8.2 |
| X-Newsreader | NetComponents |
| Xref | csiph.com comp.lang.java.programmer:22467 |
Show key headers only | View raw
> ... You would have to create more complex code if you want to align char position and byte position. ~ but then why do they have a: ~ docs/api/java/nio/channels/FileChannel.html#position() ~ in the API? How/What is it used for? ~ If you read the FileChannel.position() as you read off the chars from the CharBuffer you always get 0 (as if the offset pointer in the underlying FileChannel would not advance) ~ I am using: ~ $ java -version java version "1.7.0_11" Java(TM) SE Runtime Environment (build 1.7.0_11-b21) Java HotSpot(TM) Client VM (build 23.6-b04, mixed mode) ~ lbrtchx
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
offsets in a FileChannel ... qwertmonkey@syberianoutpost.ru - 2013-02-23 14:54 +0000 Re: offsets in a FileChannel ... Robert Klemme <shortcutter@googlemail.com> - 2013-02-23 21:22 +0100
csiph-web