Article View: borland.public.jbuilder.java.language
Article #16547Re: jProgressBar and DataInputStream
From: Tor Iver Wilhelmsen
Date: Thu, 11 Feb 1999 00:00
Date: Thu, 11 Feb 1999 00:00
25 lines
1275 bytes
1275 bytes
"Marcel Hell" <MLP.HELL@student.unimaas.nl> writes:
> int i,laenge= (int) quellenlaenge.available();
Just as an aside, Java allows the use of Unicode characters in field
and method names (though the parser doesn't grok the \uxxxx notation),
so you can write that as
int i, l�nge = (int) quellenl�nge.available();
for instance.
> DataInput quelle = new DataInputStream(new
> FileInputStream(quelldatei));
In case you don't already know it: You don't need to open another FIS
on the file, the "quellenlaenge" is already open.
> for (i=0;i<laenge;i++){
> byte b = (byte) quelle.readByte(); //Einlesen eines Bytes aus der Quelle
> b = (byte) ((b+3)%256);
> ziel.writeByte(b);
Here, you can adjust the value of the JProgressBar based on the value
of i and laenge.
Technical Details
Message-ID:
<ur9rx5nug.fsf@sds.no>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<79t6se$dhm12@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f74b3,79b9b3bd820b05d4 X-Google-Attributes: gidf74b3,public From: Tor Iver Wilhelmsen <tor.wilhelmsen@sds.no> Subject: Re: jProgressBar and DataInputStream Date: 1999/02/11 Message-ID: <ur9rx5nug.fsf@sds.no> X-Deja-AN: 443144540 Sender: towi@SDSA1761 References: <79t6se$dhm12@forums.borland.com> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.language