@SuppressWarnings("unused") private void destructor() { Portability.releaseString(content); Portability.releaseString(charset); }
/** * This is used in C++ to release special <code>isindex</code> * attribute values whose ownership is not transferred. */ void releaseValue(int i) { Portability.releaseString(values[i]); }
@SuppressWarnings("unused") private void destructor() { Portability.releaseString(content); Portability.releaseString(charset); }
@SuppressWarnings("unused") private void destructor() { Portability.releaseString(content); Portability.releaseString(charset); }
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 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 handleTag() throws SAXException { boolean stop = handleTagInner(); Portability.releaseString(content); content = null; Portability.releaseString(charset); charset = null; httpEquivState = HTTP_EQUIV_NOT_SEEN; return stop; }
private void emitDoctypeToken(int pos) throws SAXException { cstart = pos + 1; tokenHandler.doctype(doctypeName, publicIdentifier, systemIdentifier, forceQuirks); // It is OK and sufficient to release these here, since // there's no way out of the doctype states than through paths // that call this method. doctypeName = null; Portability.releaseString(publicIdentifier); publicIdentifier = null; Portability.releaseString(systemIdentifier); systemIdentifier = null; }
private void initDoctypeFields() { // Discard the characters "DOCTYPE" accumulated as a potential bogus // comment into strBuf. clearStrBufAfterUse(); doctypeName = ""; if (systemIdentifier != null) { Portability.releaseString(systemIdentifier); systemIdentifier = null; } if (publicIdentifier != null) { Portability.releaseString(publicIdentifier); publicIdentifier = null; } forceQuirks = false; }
public void end() throws SAXException { strBuf = null; longStrBuf = null; doctypeName = null; if (systemIdentifier != null) { Portability.releaseString(systemIdentifier); systemIdentifier = null; } if (publicIdentifier != null) { Portability.releaseString(publicIdentifier); publicIdentifier = null; } if (tagName != null) { tagName.release(); tagName = null; } if (attributeName != null) { attributeName.release(); attributeName = null; } tokenHandler.endTokenization(); if (attributes != null) { attributes.clear(mappingLangToXmlLang); Portability.delete(attributes); attributes = null; } }
void clear(int m) { for (int i = 0; i < length; i++) { names[i].release(); names[i] = null; Portability.releaseString(values[i]); values[i] = null; } length = 0; mode = m; // [NOCPP[ idValue = null; for (int i = 0; i < xmlnsLength; i++) { xmlnsNames[i] = null; xmlnsValues[i] = null; } xmlnsLength = 0; // ]NOCPP] }
public void end() throws SAXException { strBuf = null; doctypeName = null; if (systemIdentifier != null) { Portability.releaseString(systemIdentifier); systemIdentifier = null; } if (publicIdentifier != null) { Portability.releaseString(publicIdentifier); publicIdentifier = null; } tagName = null; nonInternedTagName.setNameForNonInterned(null // CPPONLY: , false ); attributeName = null; // CPPONLY: nonInternedAttributeName.setNameForNonInterned(null); tokenHandler.endTokenization(); if (attributes != null) { // [NOCPP[ attributes = null; // ]NOCPP] // CPPONLY: attributes.clear(mappingLangToXmlLang); } }
public void end() throws SAXException { strBuf = null; doctypeName = null; if (systemIdentifier != null) { Portability.releaseString(systemIdentifier); systemIdentifier = null; } if (publicIdentifier != null) { Portability.releaseString(publicIdentifier); publicIdentifier = null; } tagName = null; nonInternedTagName.setNameForNonInterned(null // CPPONLY: , false ); attributeName = null; // CPPONLY: nonInternedAttributeName.setNameForNonInterned(null); tokenHandler.endTokenization(); if (attributes != null) { // [NOCPP[ attributes = null; // ]NOCPP] // CPPONLY: attributes.clear(mappingLangToXmlLang); } }
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 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 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; }
Portability.releaseString(systemIdentifier); if (other.systemIdentifier == null) { systemIdentifier = null; Portability.releaseString(publicIdentifier); if (other.publicIdentifier == null) { publicIdentifier = null;
private void checkMetaCharset(HtmlAttributes attributes) throws SAXException { String charset = attributes.getValue(AttributeName.CHARSET); if (charset != null) { if (tokenizer.internalEncodingDeclaration(charset)) { requestSuspension(); return; } return; } if (!Portability.lowerCaseLiteralEqualsIgnoreAsciiCaseString( "content-type", attributes.getValue(AttributeName.HTTP_EQUIV))) { return; } String content = attributes.getValue(AttributeName.CONTENT); if (content != null) { String extract = TreeBuilder.extractCharsetFromContent(content); // remember not to return early without releasing the string if (extract != null) { if (tokenizer.internalEncodingDeclaration(extract)) { requestSuspension(); } } Portability.releaseString(extract); } }
private void checkMetaCharset(HtmlAttributes attributes) throws SAXException { String charset = attributes.getValue(AttributeName.CHARSET); if (charset != null) { if (tokenizer.internalEncodingDeclaration(charset)) { requestSuspension(); return; } return; } if (!Portability.lowerCaseLiteralEqualsIgnoreAsciiCaseString( "content-type", attributes.getValue(AttributeName.HTTP_EQUIV))) { return; } String content = attributes.getValue(AttributeName.CONTENT); if (content != null) { String extract = TreeBuilder.extractCharsetFromContent(content // CPPONLY: , this ); // remember not to return early without releasing the string if (extract != null) { if (tokenizer.internalEncodingDeclaration(extract)) { requestSuspension(); } } Portability.releaseString(extract); } }
private void checkMetaCharset(HtmlAttributes attributes) throws SAXException { String charset = attributes.getValue(AttributeName.CHARSET); if (charset != null) { if (tokenizer.internalEncodingDeclaration(charset)) { requestSuspension(); return; } return; } if (!Portability.lowerCaseLiteralEqualsIgnoreAsciiCaseString( "content-type", attributes.getValue(AttributeName.HTTP_EQUIV))) { return; } String content = attributes.getValue(AttributeName.CONTENT); if (content != null) { String extract = TreeBuilder.extractCharsetFromContent(content // CPPONLY: , this ); // remember not to return early without releasing the string if (extract != null) { if (tokenizer.internalEncodingDeclaration(extract)) { requestSuspension(); } } Portability.releaseString(extract); } }