Thanks Glen and Anthony. More info was (Help, processing strings >32K)
From: D (noone_at_nowhere.COM)
Date: 11/22/03
- Previous message: Chris: "Re: how to encrypt with a string as input,but not a key object"
- In reply to: D: "Help, processing strings >32K"
- Next in thread: Silvio Bierman: "Re: Thanks Glen and Anthony. More info was (Help, processing strings >32K)"
- Reply: Silvio Bierman: "Re: Thanks Glen and Anthony. More info was (Help, processing strings >32K)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 22 Nov 2003 22:52:59 -0000
Hi Glen, Anthony.
I'm currently looking at streams to solve this problem, probably the main
issue is that I don't come from an OO background.
Anyway the problem I have is this:
I have a large string (say 100000 bytes) passed into my routine. I need to
read this entire string in blocks of 32000 bytes as these will be passed to
another routine for further processing.
Now with my limited Java experience my thinking was to use String.substring
to chop out the necessary sections of data but of course you can't specify a
starting position greater than the size of an integer so I'm looking at
streams and readers now but I don't know any techniques for doing what I
need.
So what I need is some way of streaming in 32000 bytes of the string to
another array or string and repeat until the end of the string is reached.
Many thanks
Dave
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.542 / Virus Database: 336 - Release Date: 18/11/2003
- Previous message: Chris: "Re: how to encrypt with a string as input,but not a key object"
- In reply to: D: "Help, processing strings >32K"
- Next in thread: Silvio Bierman: "Re: Thanks Glen and Anthony. More info was (Help, processing strings >32K)"
- Reply: Silvio Bierman: "Re: Thanks Glen and Anthony. More info was (Help, processing strings >32K)"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|