From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 556 invoked by alias); 4 Mar 2003 19:49:50 -0000 Mailing-List: contact mauve-discuss-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: mauve-discuss-owner@sources.redhat.com Received: (qmail 497 invoked from network); 4 Mar 2003 19:49:47 -0000 Received: from unknown (HELO merc62.na.sas.com) (149.173.6.49) by 172.16.49.205 with SMTP; 4 Mar 2003 19:49:47 -0000 Received: from merc18.na.sas.com ([10.16.12.224]) by 10.19.11.46 with InterScan Messaging Security Suite; Tue, 04 Mar 2003 14:49:46 -0500 X-MimeOLE: Produced By Microsoft Exchange V6.0.6410.0 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: Is InputStreamReader.ready method deprecated ? Date: Tue, 04 Mar 2003 19:49:00 -0000 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Patrick Ellis" To: X-SW-Source: 2003-q1/txt/msg00030.txt.bz2 Question: I have a testcase that is failing across several platforms (UNIX,= LINUX, WINDOWS, etc) that according to the comment in the code was depreca= ted after 1.1 but I can NOT find any documentation or statement from the SU= N JavaTM 2 Platform, Standard Edition, v 1.4.1 website or any books that sa= y the code should be deprecated for the InputStreamReader.ready method . Has the function been deprecated ? Code: // Tags: JDK1.1 package gnu.testlet.java.io.InputStreamReader; import gnu.testlet.Testlet; import gnu.testlet.TestHarness; import java.io.*; public class jdk11 implements Testlet { public void test (TestHarness harness) { try { InputStreamReader isr =3D new InputStreamReader (new String= BufferInputStream ("zardoz has spoken")); harness.check(!isr.ready(), "ready()"); // deprecated pos= t-1.1 harness.check(isr.getEncoding(), "8859_1", "getEncoding"); char[] cbuf =3D new char[10]; isr.read (cbuf, 0, cbuf.length); String tst =3D new String(cbuf); harness.check(tst, "zardoz has", "read(buf[], off, len)"); harness.check(isr.read(), ' ', "read()"); isr.close (); harness.check(true, "close()"); } catch (IOException e) { harness.check(false, "IOException unexpected"); } } } Pat Ellis SDE Build and Test Team Phone: (919) 531-0355=20=20=20 R2263 Patrick.Ellis@sas.com SAS... The Power to Know