comparison src/fschmidt/util/mail/nomail/Pop3ServerImpl.java @ 68:00520880ad02

add fschmidt source
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 05 Oct 2025 17:24:15 -0600
parents
children
comparison
equal deleted inserted replaced
67:9d0fefce6985 68:00520880ad02
1 package fschmidt.util.mail.nomail;
2
3 import java.util.NoSuchElementException;
4 import fschmidt.util.mail.Mail;
5 import fschmidt.util.mail.Pop3Server;
6 import fschmidt.util.mail.MailIterator;
7
8
9 final class Pop3ServerImpl implements Pop3Server {
10
11 public MailIterator getMail() {
12 return new MailIterator(){
13 public boolean hasNext() {
14 return false;
15 }
16 public Mail next() throws NoSuchElementException {
17 throw new NoSuchElementException();
18 }
19 public void close() {}
20 };
21 }
22
23 public void setLeaveOnServer(boolean b) {}
24 public void setMailLimit(int maxMailCount) {}
25 public String getUsername() {
26 throw new UnsupportedOperationException();
27 }
28 public void useSsl() {}
29 public void setDebug(boolean b) {}
30 }