Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #27918
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail |
|---|---|
| From | Jeff Higgins <jeff@invalid.invalid> |
| Newsgroups | comp.lang.java.programmer |
| Subject | Re: RandomAccessFile and java.nio.* |
| Date | Mon, 31 Mar 2014 02:09:24 -0400 |
| Organization | A noiseless patient Spider |
| Lines | 17 |
| Message-ID | <lhb0ug$kko$1@dont-email.me> (permalink) |
| References | <slrnljh5m4.rhr.avl@login.logic.tuwien.ac.at> <lhakd2$joq$1@dont-email.me> <lham0i$sns$1@dont-email.me> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=ISO-8859-1; format=flowed |
| Content-Transfer-Encoding | 7bit |
| Injection-Date | Mon, 31 Mar 2014 06:11:28 +0000 (UTC) |
| Injection-Info | mx05.eternal-september.org; posting-host="6b9e92482af47766954d85fb77d372f5"; logging-data="21144"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/ug3EtwfGN5lw+jLt+X4PB9tkbRPdb5aQ=" |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131103 Icedove/17.0.10 |
| In-Reply-To | <lham0i$sns$1@dont-email.me> |
| Cancel-Lock | sha1:/OJP+jCWA6iepMbTffvrhAFnJa8= |
| Xref | csiph.com comp.lang.java.programmer:27918 |
Show key headers only | View raw
On 03/30/2014 11:04 PM, markspace wrote: > On 3/30/2014 7:35 PM, Jeff Higgins wrote: >> LineNumberReader takes a Reader >> Channels.newReader takes a ReadableByteChannel (FileChannel) > > > Once you have a Reader, using a BufferReader would probably be more > clear to a maintainer, assuming line number counting isn't required. > > But I agree with Andreas that RandomAccessFile seems to have been left > an orphan when the NIO stuff came out. I can't figure out a way to get > there. > Huh. java.nio.file.Files.newRandomAccess(...) <http://openjdk.java.net/jeps/1>
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
RandomAccessFile and java.nio.* Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-03-30 22:12 +0000
Re: RandomAccessFile and java.nio.* Wayne <nospam@all.invalid> - 2014-03-30 22:24 -0400
Re: RandomAccessFile and java.nio.* Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-03-31 17:54 +0000
Re: RandomAccessFile and java.nio.* Jeff Higgins <jeff@invalid.invalid> - 2014-03-30 22:35 -0400
Re: RandomAccessFile and java.nio.* markspace <markspace@nospam.nospam> - 2014-03-30 20:04 -0700
Re: RandomAccessFile and java.nio.* Jeff Higgins <jeff@invalid.invalid> - 2014-03-31 02:09 -0400
Re: RandomAccessFile and java.nio.* markspace <markspace@nospam.nospam> - 2014-03-31 00:02 -0700
Re: RandomAccessFile and java.nio.* Jeff Higgins <jeff@invalid.invalid> - 2014-03-31 08:03 -0400
Re: RandomAccessFile and java.nio.* Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-03-31 18:15 +0000
Re: RandomAccessFile and java.nio.* Jeff Higgins <jeff@invalid.invalid> - 2014-03-31 14:38 -0400
Re: RandomAccessFile and java.nio.* Jeff Higgins <jeff@invalid.invalid> - 2014-03-31 17:11 -0400
Re: RandomAccessFile and java.nio.* Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-04-01 13:43 +0000
Re: RandomAccessFile and java.nio.* markspace <markspace@nospam.nospam> - 2014-03-31 15:27 -0700
Re: RandomAccessFile and java.nio.* Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-04-01 13:29 +0000
Re: RandomAccessFile and java.nio.* markspace <markspace@nospam.nospam> - 2014-03-31 17:36 -0700
Re: RandomAccessFile and java.nio.* Andreas Leitgeb <avl@auth.logic.tuwien.ac.at> - 2014-04-01 13:18 +0000
csiph-web