| 1 31 32 package org.opencms.search.extractors; 33 34 import java.util.Collections ; 35 import java.util.Map ; 36 37 49 public class CmsExtractionResult implements I_CmsExtractionResult { 50 51 52 private String m_content; 53 54 55 private Map m_metaInfo; 56 57 62 public CmsExtractionResult(String content) { 63 64 this(content, null); 65 } 66 67 73 public CmsExtractionResult(String content, Map metaInfo) { 74 75 m_content = content; 76 m_metaInfo = metaInfo; 77 78 if (m_metaInfo == null) { 79 m_metaInfo = Collections.EMPTY_MAP; 80 } 81 } 82 83 86 public String getContent() { 87 88 return m_content; 89 } 90 91 94 public Map getMetaInfo() { 95 96 return m_metaInfo; 97 } 98 99 102 public void release() { 103 104 if (!m_metaInfo.isEmpty()) { 105 m_metaInfo.clear(); 106 } 107 m_metaInfo = null; 108 m_content = null; 109 } 110 } | Popular Tags |