else if (max > __maxFormContentSize)
throw new IllegalStateException("Form too large");
}
// Read the content
ByteArrayOutputStream2 bout = new ByteArrayOutputStream2(max > 0 ? max
: 4096);
InputStream in = getInputStream();
// Copy to a byte array.
// TODO - this is very inefficient and we could
// save lots of memory by streaming this!!!!
IO.copy(in, bout, max);
if (bout.size()==__maxFormContentSize && in.available()>0)
throw new IllegalStateException("Form too large");
// Add form params to query params
UrlEncoded.decodeTo(bout.getBuf(), 0, bout.getCount(), _parameters,encoding);
}
catch (EOFException e)
{
LogSupport.ignore(log, e);
}