Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #10338

Re: Fav. Memory Stream Impl.

Path csiph.com!x330-a1.tempe.blueboxinc.net!usenet.pasdenom.info!news.albasani.net!.POSTED!not-for-mail
From Jan Burse <janburse@fastmail.fm>
Newsgroups comp.lang.java.programmer
Subject Re: Fav. Memory Stream Impl.
Date Tue, 29 Nov 2011 22:59:06 +0100
Organization albasani.net
Lines 44
Message-ID <jb3kjd$nb5$1@news.albasani.net> (permalink)
References <jaojsb$hso$1@news.albasani.net> <4ed0101b$0$282$14726298@news.sunsite.dk> <jaqhed$23v$1@news.albasani.net> <9jflnkFnrgU1@mid.individual.net> <jaug5s$hsi$1@news.albasani.net> <9jgqmvFjc4U1@mid.individual.net> <javfl2$bni$1@news.albasani.net> <6b19df45-6141-45f0-ae2e-8ff30ece4928@y42g2000yqh.googlegroups.com> <jb042k$rjp$1@news.albasani.net> <9ji3juFomgU1@mid.individual.net> <4ed4bfc0$0$8819$426a74cc@news.free.fr> <jb2n7d$kgk$1@news.albasani.net> <jb3f5b$e7l$1@localhost.localdomain> <jb3flh$c34$1@news.albasani.net> <jb3hff$e7l$3@localhost.localdomain>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding 7bit
X-Trace news.albasani.net dsBIoY7HsaYKrWGnWMzLt2OmuCYVRLqoYF9gToHlMUGYywrUuEXTAq3GPlJvmBRA8LFwWp4ZQbcnw7vYvvWQiEADNIfD6X6ruj2S1LH/8m4HzXGl7kmf9IpStIGnzEER
NNTP-Posting-Date Tue, 29 Nov 2011 21:59:09 +0000 (UTC)
Injection-Info news.albasani.net; logging-data="JVCZCir5rpQIGrslP17vpSSZgPLsB1O2w5GMPr/JIq0FgjJI/LyTE2JDfE42GJrC5YjyzLe/ZZas5Bc9t/x7o1Nwt0DegEri3Ss7jYR9rF/u8iLS3Lf1IRILopEKddS5"; mail-complaints-to="abuse@albasani.net"
User-Agent Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0.1) Gecko/20111121 Firefox/8.0.1 SeaMonkey/2.5
In-Reply-To <jb3hff$e7l$3@localhost.localdomain>
Cancel-Lock sha1:3jW8WQCgG+BRMziZp/UlNdRgCzc=
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.programmer:10338

Show key headers only | View raw


Martin Gregorie schrieb:
> On Tue, 29 Nov 2011 21:34:54 +0100, Jan Burse wrote:
>
>> Martin Gregorie schrieb:
>>> As you say the individual file sizes are a few tens of bytes, have you
>>> looked at using ByteInputStream and ByteOutputStream?
>>>
>>> If you have considered them, why are they unsuitable?
>>
>> They could play a part in the game. But two problems are unsolved:
>> sharing and positioning.
>>
> My bad: I meant ByteArrayInputStream and ByteArrayOutputStream
>
> The names are a little confusing: ByteArrayInputStream reads *from* a
> byte array. The ByteArrayOutputStream writes *into* a byte array.
>
> I've used them to move byte arrays to and from CLOB columns in databases,
> where they were straight-forward to use with CLOB sizes ranging from a
> few bytes to a few megabytes, though I never had more than one or two
> instances in use at a time.
>
>
I don't see a constructor where I could hand over a
buffer content from the memory stream. So that multiple
reader and/or writers can share the same buffer content.

Remember requirement is something along:

     class MemoryStream {

          InputStream createInput();
          OutputStream createOutput();
	 ...

     }

     class MemoryInput extens InputStream {
          ...
     }

     class MemoryOutput extens OutputStream {
          ...
     }

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-25 18:39 +0100
  Re: Fav. Memory Stream Impl. markspace <-@.> - 2011-11-25 10:34 -0800
    Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-25 20:59 +0100
      Re: Fav. Memory Stream Impl. markspace <-@.> - 2011-11-25 12:16 -0800
        Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-25 21:23 +0100
          Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-25 21:23 +0100
            Re: Fav. Memory Stream Impl. markspace <-@.> - 2011-11-25 13:00 -0800
              Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-25 22:32 +0100
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-25 22:36 +0100
                Re: Fav. Memory Stream Impl. Robert Klemme <shortcutter@googlemail.com> - 2011-11-25 23:22 +0100
  Re: Fav. Memory Stream Impl. Arne Vajhøj <arne@vajhoej.dk> - 2011-11-25 17:00 -0500
    Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-26 12:10 +0100
      Re: Fav. Memory Stream Impl. Robert Klemme <shortcutter@googlemail.com> - 2011-11-27 21:43 +0100
        Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-28 00:13 +0100
          Re: Fav. Memory Stream Impl. Robert Klemme <shortcutter@googlemail.com> - 2011-11-28 08:14 +0100
            Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-28 09:10 +0100
              Re: Fav. Memory Stream Impl. Robert Klemme <shortcutter@googlemail.com> - 2011-11-28 02:47 -0800
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-28 14:58 +0100
                Re: Fav. Memory Stream Impl. Robert Klemme <shortcutter@googlemail.com> - 2011-11-28 19:52 +0100
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-29 00:22 +0100
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-29 00:39 +0100
                Re: Fav. Memory Stream Impl. Gene Wirchenko <genew@ocis.net> - 2011-11-28 17:03 -0800
                Re: Fav. Memory Stream Impl. Arne Vajhøj <arne@vajhoej.dk> - 2012-02-06 21:06 -0500
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2012-02-07 09:59 +0100
                Re: Fav. Memory Stream Impl. Daniel Pitts <newsgroup.nospam@virtualinfinity.net> - 2012-02-07 09:59 -0800
                Re: Fav. Memory Stream Impl. Arne Vajhøj <arne@vajhoej.dk> - 2012-02-07 21:02 -0500
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2012-02-08 09:55 +0100
                Re: Fav. Memory Stream Impl. "John B. Matthews" <nospam@nospam.invalid> - 2012-02-08 12:18 -0500
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2012-02-08 20:23 +0100
                Re: Fav. Memory Stream Impl. Gene Wirchenko <genew@ocis.net> - 2012-02-08 13:18 -0800
                Re: Fav. Memory Stream Impl. Gene Wirchenko <genew@ocis.net> - 2012-02-08 13:18 -0800
                Re: Fav. Memory Stream Impl. Mayeul <mayeul.marguet@free.fr> - 2011-11-29 12:25 +0100
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-29 14:37 +0100
                Re: Fav. Memory Stream Impl. Lew <lewbloch@gmail.com> - 2011-11-29 07:37 -0800
                Re: Fav. Memory Stream Impl. Martin Gregorie <martin@address-in-sig.invalid> - 2011-11-29 20:26 +0000
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-29 21:34 +0100
                Re: Fav. Memory Stream Impl. Martin Gregorie <martin@address-in-sig.invalid> - 2011-11-29 21:05 +0000
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-29 22:59 +0100
                Re: Fav. Memory Stream Impl. markspace <-@.> - 2011-11-29 14:06 -0800
                Re: Fav. Memory Stream Impl. "John B. Matthews" <nospam@nospam.invalid> - 2011-11-29 21:23 -0500
                Re: Fav. Memory Stream Impl. Martin Gregorie <martin@address-in-sig.invalid> - 2011-11-30 01:08 +0000
                Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-30 14:03 +0100
      Re: Fav. Memory Stream Impl. Arne Vajhøj <arne@vajhoej.dk> - 2012-02-06 20:59 -0500
  Re: Fav. Memory Stream Impl. Roedy Green <see_website@mindprod.com.invalid> - 2011-11-26 00:26 -0800
    Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-26 12:05 +0100
      Re: Fav. Memory Stream Impl. Lew <lewbloch@gmail.com> - 2011-11-26 11:22 -0800
        Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2011-11-26 20:44 +0100
          Re: Fav. Memory Stream Impl. Lew <lewbloch@gmail.com> - 2011-11-26 17:15 -0800
    Re: Fav. Memory Stream Impl. Jan Burse <janburse@fastmail.fm> - 2012-01-28 00:11 +0100

csiph-web