Changeset 93df048 for apps/ministreaming


Ignore:
Timestamp:
Jul 5, 2013 11:54:18 AM (7 years ago)
Author:
zab2 <zab2@…>
Branches:
master
Children:
18531f0
Parents:
2927382
Message:

Cleanups, make I2PSocket a Closeable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • apps/ministreaming/java/src/net/i2p/client/streaming/I2PSocket.java

    r2927382 r93df048  
    11package net.i2p.client.streaming;
    22
     3import java.io.Closeable;
    34import java.io.IOException;
    45import java.io.InputStream;
     
    1314 * defined in the "official" streaming api.
    1415 */
    15 public interface I2PSocket {
     16public interface I2PSocket extends Closeable {
    1617    /**
    1718     * @return the Destination of this side of the socket.
     
    6869    public void setReadTimeout(long ms);
    6970
    70     /**
    71      * Closes the socket if not closed yet
    72      * @throws IOException on failure
    73      */
    74     public void close() throws IOException;
    75    
    7671    public boolean isClosed();
    7772
Note: See TracChangeset for help on using the changeset viewer.