1 16 package org.apache.cocoon.serialization; 17 18 import org.apache.cocoon.xml.AbstractXMLPipe; 19 import java.io.IOException ; 20 import java.io.OutputStream ; 21 22 28 29 public abstract class AbstractSerializer 30 extends AbstractXMLPipe implements Serializer { 31 32 35 protected OutputStream output; 36 37 41 public void setOutputStream(OutputStream out) 42 throws IOException { 43 this.output = out; 44 } 45 46 51 public String getMimeType() { 52 return null; 53 } 54 55 58 public void recycle() { 59 super.recycle(); 60 this.output = null; 61 } 62 63 66 public boolean shouldSetContentLength() { 67 return false; 68 } 69 70 } 71 | Popular Tags |