🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15964

Re: Integer class

#15964
From: Jason C. Leach
Date: Sun, 11 Apr 1999 00:00
31 lines
1588 bytes
hi,

Ya, need to read a byte from a file (binary format) and compair that
byte against the HEXidecimal character/value '0x0a'.
So the byte I read I do:  if (myInt.intValue() == 0x0a) //0x0a  is a
LINE FEED char.
{ bla bla bal }

It should work OK.  I am also going to need to write that int I just
read back to a different output file.  Will writing the int value work
OK?

I supose I don't really need to wrap it in an integer object.  I just
don't like declairing global variables.  Perhaps this is just a habbet
from C++.  Thus by wraping it in an Int object, I can pass it by
refrence, and save the functions return for error checking or a status
report.

What do you think?  Far less ifficient to do it this way in Java?  I
don't mind changing the formant if its less efficient and uncommon to do
it this way in Java.

--


�,+���+,��,+���+,�*
....Jason C. Leach
..."Many Hands Make Light Work."
..- Unknown

-- PGP key on server: pgpkeys.mit.edu
Technical Details
Message-ID: <37113B97.9D2F41A9@hotmail.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3710E522.7A438C7E@hotmail.com> <3710fa40.2311545937@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f74b3,48b0db82994ba0f7
X-Google-Attributes: gidf74b3,public
From: "Jason C. Leach" <leachjc@hotmail.com>
Subject: Re: Integer class
Date: 1999/04/11
Message-ID: <37113B97.9D2F41A9@hotmail.com>
X-Deja-AN: 465278354
Content-Transfer-Encoding: 8bit
References: <3710E522.7A438C7E@hotmail.com> <3710fa40.2311545937@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=iso-8859-1
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language