Article View: aus.computers.java
Article #298Re: Representing bytes in hex
From: Paul Murray
Date: Fri, 12 Jan 2001 21:13
Date: Fri, 12 Jan 2001 21:13
17 lines
1764 bytes
1764 bytes
"Luke Vanderfluit" <luke@chipcity.com.au> wrote in message news:3A5EA2DA.E5EEED27@chipcity.com.au... > Hi, > > Who can tell me how to represent my output in hex. > I want to read a number of bytes from a file, then replace them with > other bytes. > I can read the bytes OK, but how to represent them in hex? Integer.toHexString() Remember to zero-fill them. -------------------------------------------------------------- 0x29A - opcode of the beast! http://www.users.bigpond.com/pmurray ICQ: 26066755
Technical Details
Message-ID:
<ORz76.1783$65.11992@newsfeeds.bigpond.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!intgwpad.nntp.telstra.net!newsfeeds.bigpond.com!not-for-mailReferences:
<3A5EA2DA.E5EEED27@chipcity.com.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,e0719ed8420f42f6 X-Google-Attributes: gid10d6db,public X-Google-Thread: 113ae9,e0719ed8420f42f6 X-Google-Attributes: gid113ae9,public X-Google-Thread: 10a146,e0719ed8420f42f6 X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2001-01-12 01:23:34 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!news.iac.net!news-out.cwix.com!newsfeed.cwix.com!intgwpad.nntp.telstra.net!newsfeeds.bigpond.com!not-for-mail From: "Paul Murray" <pmurray@nospam.bigpond.com> Newsgroups: aus.computers.java,comp.lang.java.help,comp.lang.java.programmer References: <3A5EA2DA.E5EEED27@chipcity.com.au> Subject: Re: Representing bytes in hex Lines: 20 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Message-ID: <ORz76.1783$65.11992@newsfeeds.bigpond.com> Date: Sat, 13 Jan 2001 08:13:00 +1100 NNTP-Posting-Host: 203.54.249.100 X-Trace: newsfeeds.bigpond.com 979290606 203.54.249.100 (Fri, 12 Jan 2001 20:10:06 EST) NNTP-Posting-Date: Fri, 12 Jan 2001 20:10:06 EST Organization: Telstra BigPond Internet Services (http://www.bigpond.com)