123 |
throw new Error(); |
throw new Error(); |
124 |
} |
} |
125 |
position = nextHeader(header, 0); |
position = nextHeader(header, 0); |
126 |
|
|
127 |
while(!getFieldBodyString("content-type", |
while(!getFieldBodyString("content-type", |
128 |
header, |
header, |
129 |
position).trim().startsWith("text/") |
position).trim().startsWith("text/plain") |
130 |
&& position != header.length()) { |
&& position != header.length()) { |
131 |
oldPosition = position; |
oldPosition = position; |
132 |
position = nextHeader(header, position); |
position = nextHeader(header, position); |
133 |
if (position == header.length()) |
if (position == header.length()) { |
134 |
return null; |
return null; |
135 |
|
} |
136 |
} |
} |
137 |
|
|
138 |
String id = getFieldBodyString("content-id", header, oldPosition).trim(); |
String id = getFieldBodyString("content-id", header, oldPosition).trim(); |
139 |
if(id.startsWith("storm:block:")) { |
if(id.startsWith("storm:block:")) { |
140 |
id = id.substring("storm:block:".length()); |
id = id.substring("storm:block:".length()); |