RE: READER to InputStream
You need a Reader object pointing to an InputStream ? Reader r=new java.io.InputStreamReader(myInputStream); is it that what you want ? -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: donderdag 24 januari 2002 13:05 To: Tomcat Users List (E-Mail) Subject: READER to InputStream I know I'm a looser but can anybody tell me quickly how I can get a Reader to an InputStream. I've searched for quite a while but I didn't find anything yet ! PLEASE Thanx Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: READER to InputStream
No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( The abstract class Reader doesn't have any method to report which InputStream it is connected to. I think you may be out of luck. On the other hand, tell us more about the problem - it sounds interesting. J. -- You're only jealous cos the little penguins are talking to me. *** For more information on Ordnance Survey products and services, visit our web site at http://www.ordnancesurvey.co.uk *** -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]
RE: READER to InputStream
Stuff your readers content in an array and open an InputStream with the array...(ByteArrayInputStream takes an array as a constructor) You have to play around with it though, since it could be that it needs some conversion of some sort to corrrectly end up in the inputstream.. Mvgr, Martin -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 13:19 To: 'Tomcat Users List' Subject: AW: READER to InputStream No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Walter De Wit [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 13:09 An: 'Tomcat Users List' Betreff: RE: READER to InputStream You need a Reader object pointing to an InputStream ? Reader r=new java.io.InputStreamReader(myInputStream); is it that what you want ? -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: donderdag 24 januari 2002 13:05 To: Tomcat Users List (E-Mail) Subject: READER to InputStream I know I'm a looser but can anybody tell me quickly how I can get a Reader to an InputStream. I've searched for quite a while but I didn't find anything yet ! PLEASE Thanx Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- -- -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == == == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe
RE: READER to InputStream
As I said, you have to play with it.. You can always stuff the array in a String and do a getBytes() afterwards ;)) Mvgr, Martin -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 14:20 To: 'Tomcat Users List' Subject: AW: READER to InputStream But I need byte[] - how do I get that ? AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Martin van den Bemt [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 13:41 An: Tomcat Users List Betreff: RE: READER to InputStream Stuff your readers content in an array and open an InputStream with the array...(ByteArrayInputStream takes an array as a constructor) You have to play around with it though, since it could be that it needs some conversion of some sort to corrrectly end up in the inputstream.. Mvgr, Martin -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 13:19 To: 'Tomcat Users List' Subject: AW: READER to InputStream No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -Ursprüngliche Nachricht- Von: Walter De Wit [mailto:[EMAIL PROTECTED]] Gesendet: Donnerstag, 24. Januar 2002 13:09 An: 'Tomcat Users List' Betreff: RE: READER to InputStream You need a Reader object pointing to an InputStream ? Reader r=new java.io.InputStreamReader(myInputStream); is it that what you want ? -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: donderdag 24 januari 2002 13:05 To: Tomcat Users List (E-Mail) Subject: READER to InputStream I know I'm a looser but can anybody tell me quickly how I can get a Reader to an InputStream. I've searched for quite a while but I didn't find anything yet ! PLEASE Thanx Oliver AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect Wörthstraße 34 D-50668 Köln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ -- -- -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der vorgesehene Adressat dieser E-Mail oder dessen Vertreter sein, so bitten wir Sie, sich mit dem Absender der E-Mail in Verbindung zu setzen. For legal and security reasons the information provided in this e-mail is not legally binding. Upon request we would be pleased to provide you with a legally binding confirmation in written form. Any form of unauthorised use, publication, reproduction, copying or disclosure of the content of this e-mail is not permitted. This message is exclusively for the person addressed or their representative. If you are not the intended recipient of this message and its contents, please notify the sender immediately. == == == -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED] -- Aus Rechts- und Sicherheitsgruenden ist die in dieser E-Mail gegebene Information nicht rechtsverbindlich. Eine rechtsverbindliche Bestaetigung reichen wir Ihnen gerne auf Anforderung in schriftlicher Form nach. Beachten Sie bitte, dass jede Form der unautorisierten Nutzung, Veroeffentlichung, Vervielfaeltigung oder Weitergabe des Inhalts dieser E-Mail nicht gestattet ist.Diese Nachricht ist ausschliesslich fuer den bezeichneten Adressaten oder dessen Vertreter bestimmt. Sollten Sie nicht der
RE: READER to InputStream
Hi, I'd suggest to implement your own stream with public int read() { return underlyingReader.read(); } it won't be so simple I think, but as starting point... Advantage - no need in buffers (memory) -Original Message- From: Lauer, Oliver [mailto:[EMAIL PROTECTED]] Sent: Thursday, January 24, 2002 13:19 To: 'Tomcat Users List' Subject: AW: READER to InputStream No, I've a Reader and need an InputStream, sounds silly but the API needs so...:-( AXA eSolutions GmbH AXA Konzern AG Germany Oliver Lauer Web Architect W?rthstra?e 34 D-50668 K?ln Germany Tel.: +49 221 148 31277 Fax: +49 221 148 43963 Mobil: +49 179 59 064 59 e-Mail: [EMAIL PROTECTED] _ Anton. -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands: mailto:[EMAIL PROTECTED] Troubles with the list: mailto:[EMAIL PROTECTED]