1 14 package org.wings.externalizer; 15 16 import org.wings.io.Device; 17 18 import java.io.IOException ; 19 import java.util.Collection ; 20 21 41 public interface Externalizer { 42 47 String getExtension(Object obj); 48 49 52 String getMimeType(Object obj); 53 54 59 int getLength(Object obj); 60 61 65 boolean isFinal(Object obj); 66 67 70 void write(Object obj, Device out) 71 throws IOException ; 72 73 78 Class [] getSupportedClasses(); 79 80 84 String [] getSupportedMimeTypes(); 85 86 93 Collection getHeaders(Object obj); 94 } 95 96 97 | Popular Tags |