nbsp; }
else if(token.trim().startsWith("filename"))
{
filename=tokenizer.nextToken();
StringTokenizer ftokenizer=new StringTokenizer(filename,"\\");
filename=ftokenizer.nextToken();
while(ftokenizer.hasMoreTokens())
filename=ftokenizer.nextToken();
state=1;
break;
}
}
}//end state=0
else if (st.startsWith("Content-Type") && state==1)
{
pos=st.indexOf(":");
contentType=st.substring(pos+2,st.length()-2);
}//end state=1
else if (state==1)
state=3;
else if (st.equals("\r\n")&&state==2)
state=4;
else if (state==3)
buffer.write(bytes,0,i);
else if (state==4)
value=value==null?st:value+st;
i=in.readLine(bytes,0,512);
}//end while
}
public void setDir(String strSavePath)
{
strDir =strSavePa