String line = getLine(bin);
statusLine = new StatusLine(line);
headers = new Vector();
line = getLine(bin);
int contentLength = 0;
while (line.length() > 0) {
if (line.length() > 0) {
Header header = new Header(line);
if (header.type == Header.CONTENT_LENGTH) {
contentLength = header.contentLength;
}
headers.addElement(header);
line = getLine(bin);
}
}
if (contentLength > 0) {
byte data[] = new byte[bin.available()];
try {
bin.read(data);
sdp = new SdpParser(data);
} catch (IOException e) {
e.printStackTrace();
}
}