1 6 7 package javax.emb; 8 9 import java.io.Serializable; 10 11 32 public interface Media extends Serializable 33 { 34 static final String MIME_TYPE_UNKNOWN = "www/unknown"; 35 36 48 byte[] getContent() throws MediaException; 49 50 59 MediaFormat getFormat() throws MediaException; 60 61 77 MediaHeader getHeader() throws MediaException; 78 79 90 String getMimeType() throws MediaException; 91 92 100 String getName() throws MediaException; 101 102 111 Media getProxy() throws MediaException; 112 113 121 long getSize() throws MediaException; 122 123 142 int readContent(long position, byte[] buffer) throws MediaException; 143 144 168 int readContent(long position, byte[] buffer, int offset, int length) 169 throws MediaException; 170 } | Popular Tags |