if (e == Event.QuotedString) {
return new EntityTag(reader.getEventValue());
} else if (e == Event.Token) {
if (reader.getEventValue().equals("W")) {
reader.nextSeparator('/');
return new EntityTag(reader.nextQuotedString(), true);
}
}
} catch (ParseException ex) {
throw new IllegalArgumentException(
"Error parsing entity tag '" + header + "'", ex);