Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Tomcat Users »

Re: TC 4 <-oreillyMultipart-> TC5: Corrupt form data: premature ending

Dirk Griesbach

2003-12-04

Replies:

R�my,

this copy is of type

  javax.servlet.ServletInputStream.readLine()

acquired by

  HttpServletRequest.getInputStream();

Would you agree that this is a good idea ?

grisi

----- Original Message -----
From: Remy Maucherat <remm@(protected)>
To: Tomcat Users List <tomcat-user@(protected)>
Sent: Thursday, December 04, 2003 3:49 PM
Subject: Re: TC 4 <-oreillyMultipart-> TC5: Corrupt form data: premature
ending


> Dirk Griesbach wrote:
>
> > R�my,
> >
> > I had a look into the sources. There it reads:
> >
> > class MultipartParser:
> >
> >>>>>>>>>>>>>"
> >
> > do {
> >     String line = readLine();
> >     if (line == null) {
> >      throw new IOException("Corrupt form data: premature ending");
> > <----------------
> >     }
> > "<<<<<<<<<<<<<<
> > (:-)))))
> >
> > By which method should 'readLine()' be replaced to achieve best
performance
> > ?
>
> Yes, but what does this readLine method does and when is it called ?
> I was talking about request.getReader().readLine().
>
> --
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> R�my Maucherat
> Senior Developer & Consultant
> JBoss Group (Europe) S�RL
> xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



©2008 junlu.com - Jax Systems, LLC, U.S.A.