1 package org.columba.mail.folder; 17 18 import java.io.InputStream ; 19 20 import org.columba.ristretto.io.Source; 21 22 23 39 public interface IDataStorage { 40 46 public void removeMessage(Object uid) throws Exception ; 47 48 55 public Source getMessageSource(Object uid) throws Exception ; 56 57 64 public InputStream getMessageStream(Object uid) throws Exception ; 65 66 73 public void saveMessage(Object uid, InputStream source) 74 throws Exception ; 75 76 81 public int getMessageCount(); 82 83 90 public boolean exists(Object uid) throws Exception ; 91 92 97 public Object [] getMessageUids(); 98 } 99 | Popular Tags |