1 23 24 package org.apache.slide.extractor; 25 26 import java.util.Map ; 27 import java.io.InputStream ; 28 29 32 public abstract class AbstractPropertyExtractor implements PropertyExtractor { 33 34 private String contentType; 35 private String uri; 36 private String namespace; 37 38 public AbstractPropertyExtractor(String uri, String contentType) { 39 this(uri, contentType, null); 40 } 41 42 public AbstractPropertyExtractor(String uri, String contentType, String namespace) { 43 this.contentType = contentType; 44 this.uri = uri; 45 this.namespace = namespace; 46 } 47 48 public abstract Map extract(InputStream content) throws ExtractorException; 49 50 public String getContentType() { 51 return contentType; 52 } 53 54 public String getUri() { 55 return uri; 56 } 57 58 public String getNamespace() { 59 return namespace; 60 } 61 62 } 63 | Popular Tags |