🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Java HEX question

#14596
From: Shawn Clark
Date: Tue, 17 Aug 1999 00:00
13 lines
895 bytes
Just one more easy question...

I have an instance where I am using the JavaComm library

Here is an example of code that I am using to print to a little printer that
I have over here.
Now, this printer has the ability to do special things like change ribbon
color.  Now, in order to do this, I can either send ASCII: DC2  or HEX: 12

My question is, how can I use either of the methods in a stream?


outputStream.write(tempStr.getBytes());
Technical Details
Message-ID: <7pcog1$2913@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,8463e65b10f77f02,start
X-Google-Attributes: gidf74b3,public
From: "Shawn Clark" <shawn@shift4.com>
Subject: Java HEX question
Date: 1999/08/17
Message-ID: <7pcog1$2913@forums.borland.com>
X-Deja-AN: 513979996
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language