Added gmail plugin containing both imap and smtp, with unit test

This commit is contained in:
Daryl
2012-08-30 18:48:25 +08:00
parent 36dade1092
commit 617c65dd48
12 changed files with 597 additions and 31 deletions

View File

@@ -1,5 +1,6 @@
package net.sf.briar.api.plugins.simplex;
import java.io.IOException;
import java.io.InputStream;
/**
@@ -8,8 +9,9 @@ import java.io.InputStream;
*/
public interface SimplexTransportReader {
/** Returns an input stream for reading from the transport. */
InputStream getInputStream();
/** Returns an input stream for reading from the transport.
* @throws IOException */
InputStream getInputStream() throws IOException;
/**
* Closes the reader and disposes of any associated resources. The first

View File

@@ -1,5 +1,6 @@
package net.sf.briar.api.plugins.simplex;
import java.io.IOException;
import java.io.OutputStream;
/**
@@ -11,8 +12,9 @@ public interface SimplexTransportWriter {
/** Returns the capacity of the transport in bytes. */
long getCapacity();
/** Returns an output stream for writing to the transport. */
OutputStream getOutputStream();
/** Returns an output stream for writing to the transport.
* @throws IOException */
OutputStream getOutputStream() throws IOException;
/**
* Returns true if the output stream should be flushed after each packet.