1 23 24 package org.apache.slide.extractor; 25 26 import java.io.InputStream ; 27 import java.io.Reader ; 28 29 32 public abstract class AbstractContentExtractor implements ContentExtractor { 33 34 private String contentType; 35 private String uri; 36 private String namespace; 37 38 public AbstractContentExtractor(String uri, String contentType) { 39 this(uri, contentType, null); 40 } 41 42 public AbstractContentExtractor(String uri, String contentType, String namespace) { 43 this.contentType = contentType; 44 this.uri = uri; 45 this.namespace = namespace; 46 } 47 48 public abstract Reader 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 |