how to substitute this deprecated class
Camila PiƱeiro <[email protected]> Fri, 1 Nov 2002 15:18:44 -0600
| Newsgroups | gmane.comp.java.enhydra.support |
|---|---|
| Message-ID | <[email protected]> |
This is a multi-part message in MIME format. ------=_NextPart_000_00CB_01C281B9.F7FBEA90 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi all! I'm using the method setAsciiStream(int parameterIndex, InputStream x, = int length) from the PreparedStament class,=20 with an java.io.StringBufferInputStream as the InputStream, in my DBManager class. When I compile it says something is deprecrated. I looked in the Java = Builder help and the method is not deprecated; but it says that the = class StringBufferInputStream doesn't work properly. The help says that = I should use the StringReader class, but I can't use it with the method = setAsciiStream. What I want to do is to set a long String in a Memo field in a data = base's table. Do you know what sould I do? Camila ------=_NextPart_000_00CB_01C281B9.F7FBEA90 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META content=3D"text/html; charset=3Diso-8859-1" = http-equiv=3DContent-Type> <META content=3D"MSHTML 5.00.2314.1000" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi all!</FONT></DIV> <DIV><FONT face=3DArial size=3D2> I'm using the method </FONT><FONT = face=3DArial=20 size=3D2><STRONG>setAsciiStream</STRONG></FONT><FONT face=3DArial=20 size=3D2>(int parameterIndex, <STRONG>InputStream </STRONG>x,=20 int length)</FONT></DIV> <DIV><FONT face=3DArial size=3D2>from the <FONT face=3DArial=20 size=3D2><STRONG>PreparedStament </STRONG></FONT>class, </FONT></DIV> <DIV><FONT face=3DArial size=3D2>with an <FONT face=3DArial=20 size=3D2><STRONG>java.io.StringBufferInputStream </STRONG>as the=20 <STRONG>InputStream</STRONG>,</FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2><FONT face=3DArial size=3D2> in my = DBManager=20 class.</FONT></FONT></DIV> <DIV><FONT face=3DArial size=3D2> When I compile it says something = is=20 deprecrated. I looked in the Java Builder help and the method is not = deprecated;=20 but it says that the class <STRONG>StringBufferInputStream = </STRONG>doesn't work=20 properly. The help says that I should use the <STRONG>StringReader=20 </STRONG>class, but I can't use it with the method <FONT = face=3DArial=20 size=3D2><STRONG>setAsciiStream</STRONG></FONT>.</FONT></DIV> <DIV><FONT face=3DArial size=3D2> What I want to do is to set a = long String in=20 a Memo field in a data base's table.</FONT></DIV> <DIV><FONT face=3DArial size=3D2> Do you know what sould I = do?</FONT></DIV> <DIV><FONT face=3DArial size=3D2> Camila</FONT></DIV></BODY></HTML> ------=_NextPart_000_00CB_01C281B9.F7FBEA90--