ParamPart(String name,InputStream in,String boundary,String encoding) throws IOException {
  super(name);
  this.encoding=encoding;
  PartInputStream pis=new PartInputStream(in,boundary);
  ByteArrayOutputStream baos=new ByteArrayOutputStream(512);
  byte[] buf=new byte[128];
  int read;
  while ((read=pis.read(buf)) != -1) {
    baos.write(buf,0,read);
  }
  pis.close();
  baos.close();
  value=baos.toByteArray();
}

ParamPart ( String name , InputStream in , String boundary , String encoding ) throws IOException { super ( name ) ; this . encoding = encoding ; PartInputStream pis = new PartInputStream ( in , boundary ) ; ByteArrayOutputStream baos = new ByteArrayOutputStream ( 512 ) ; byte [ ] buf = new byte [ 128 ] ; int read ; while ( ( read = pis . read ( buf ) ) != - 1 ) { baos . write ( buf , 0 , read ) ; } pis . close ( ) ; baos . close ( ) ; value = baos . toByteArray ( ) ; }
constructs a parameter part ; this is called by the parser .
