private void handleCharInAttributeValue(int c) { if (metaState == A) { if (contentIndex == CONTENT.length || charsetIndex == CHARSET.length) { addToBuffer(c); } else if (httpEquivIndex == HTTP_EQUIV.length) { if (contentTypeIndex < CONTENT_TYPE.length && toAsciiLowerCase(c) == CONTENT_TYPE[contentTypeIndex]) { ++contentTypeIndex; } else { contentTypeIndex = Integer.MAX_VALUE; } } } }
private boolean handleTag() throws SAXException { boolean stop = handleTagInner(); Portability.releaseString(content); content = null; Portability.releaseString(charset); charset = null; httpEquivState = HTTP_EQUIV_NOT_SEEN; return stop; }
private boolean handleTagInner() throws SAXException { if (charset != null && tryCharset(charset)) { return true; } if (content != null && httpEquivState == HTTP_EQUIV_CONTENT_TYPE) { String extract = TreeBuilder.extractCharsetFromContent(content); if (extract == null) { return false; } boolean success = tryCharset(extract); Portability.releaseString(extract); return success; } return false; }
private boolean handleTag() throws SAXException { boolean stop = handleTagInner(); Portability.releaseString(content); content = null; Portability.releaseString(charset); charset = null; httpEquivState = HTTP_EQUIV_NOT_SEEN; return stop; }
private boolean handleTagInner() throws SAXException { if (charset != null && tryCharset(charset)) { return true; } if (content != null && httpEquivState == HTTP_EQUIV_CONTENT_TYPE) { String extract = TreeBuilder.extractCharsetFromContent(content // CPPONLY: , treeBuilder ); if (extract == null) { return false; } boolean success = tryCharset(extract); Portability.releaseString(extract); return success; } return false; }
private void handleCharInAttributeValue(int c) { if (metaState == A) { if (contentIndex == CONTENT.length || charsetIndex == CHARSET.length) { addToBuffer(c); } else if (httpEquivIndex == HTTP_EQUIV.length) { if (contentTypeIndex < CONTENT_TYPE.length && toAsciiLowerCase(c) == CONTENT_TYPE[contentTypeIndex]) { ++contentTypeIndex; } else { contentTypeIndex = Integer.MAX_VALUE; } } } }
private boolean handleTag() throws SAXException { boolean stop = handleTagInner(); Portability.releaseString(content); content = null; Portability.releaseString(charset); charset = null; httpEquivState = HTTP_EQUIV_NOT_SEEN; return stop; }
private boolean handleTagInner() throws SAXException { if (charset != null && tryCharset(charset)) { return true; } if (content != null && httpEquivState == HTTP_EQUIV_CONTENT_TYPE) { String extract = TreeBuilder.extractCharsetFromContent(content // CPPONLY: , treeBuilder ); if (extract == null) { return false; } boolean success = tryCharset(extract); Portability.releaseString(extract); return success; } return false; }
private void handleCharInAttributeValue(int c) { if (metaState == A) { if (contentIndex == CONTENT.length || charsetIndex == CHARSET.length) { addToBuffer(c); } else if (httpEquivIndex == HTTP_EQUIV.length) { if (contentTypeIndex < CONTENT_TYPE.length && toAsciiLowerCase(c) == CONTENT_TYPE[contentTypeIndex]) { ++contentTypeIndex; } else { contentTypeIndex = Integer.MAX_VALUE; } } } }