1 4 5 9 10 package org.openlaszlo.data; 11 12 import org.openlaszlo.xml.DataEncoder; 13 import javax.servlet.http.HttpServletResponse ; 14 import java.io.InputStream ; 15 import java.io.IOException ; 16 import java.io.InterruptedIOException ; 17 18 23 public abstract class Data { 24 25 32 public abstract InputStream getInputStream() 33 throws InterruptedIOException , IOException ; 34 35 38 public abstract String getMimeType(); 39 40 47 public String getAsString() throws InterruptedIOException , IOException { 48 throw new RuntimeException ("unimplemented"); 49 } 50 51 56 public void appendResponseHeadersAsXML(StringBuffer xmlResponse) { 57 throw new RuntimeException ("unimplemented"); 58 } 59 60 66 public boolean notModified() { 67 return false; 68 } 69 70 73 public long size() { 74 return -1; 75 } 76 77 81 public long lastModified() { 82 return -1; 83 } 84 85 88 public void release() { 89 } 90 } 91 | Popular Tags |