package nanomsg;

import nanomsg.exceptions.IOException;

/**
 * Common interface that should implement all sockets.
 */
public interface ISocket {
    public void close() throws IOException;
    public int getNativeSocket();
    public void bind(final String dir) throws IOException;
    public void connect(final String dir) throws IOException;
    public void subscribe(final String data) throws IOException;
    public void subscribe(final byte[] data) throws IOException;

    public int sendString(final String data, final boolean blocking) throws IOException, IOException;
    public int sendString(final String data) throws IOException, IOException;
    public int sendBytes(final byte[] data, final boolean blocking) throws IOException, IOException;
    public int sendBytes(final byte[] data) throws IOException, IOException;

    public String recvString(final boolean blocking) throws IOException, IOException;
    public String recvString() throws IOException, IOException;

    public byte[] recvBytes(final boolean blocking) throws IOException, IOException;
    public byte[] recvBytes() throws IOException, IOException;

    public int getFd(final int flag) throws IOException;

    public void setSendTimeout(final int milis);
    public void setRecvTimeout(final int milis);
}

@@ -141,18 +141,16 @@
 ocket %7B%0A
-  
   public
@@ -175,34 +175,32 @@
 ws IOException;%0A
-  
   public int get
@@ -213,26 +213,24 @@
 Socket();%0A  
- 
- 
 public void 
@@ -264,34 +264,32 @@
 ws IOException;%0A
-  
   public void co
@@ -326,34 +326,32 @@
  IOException;%0A  
- 
- 
 public void subs
@@ -393,26 +393,24 @@
 xception;%0A  
- 
- 
 public void 
@@ -453,34 +453,32 @@
 IOException;%0A%0A  
- 
- 
 public int sendS
@@ -551,34 +551,32 @@
 n, IOException;%0A
-  
   public int sen
@@ -629,34 +629,32 @@
  IOException;%0A  
- 
- 
 public int sendB
@@ -726,34 +726,32 @@
 n, IOException;%0A
-  
   public int sen
@@ -802,34 +802,32 @@
 , IOException;%0A%0A
-  
   public String 
@@ -886,34 +886,32 @@
 n, IOException;%0A
-  
   public String 
@@ -949,34 +949,32 @@
 , IOException;%0A%0A
-  
   public byte%5B%5D 
@@ -1040,18 +1040,16 @@
 eption;%0A
-  
   public
@@ -1094,34 +1094,32 @@
 , IOException;%0A%0A
-  
   public int get
@@ -1158,18 +1158,16 @@
 ption;%0A%0A
-  
   public
@@ -1205,18 +1205,16 @@
 milis);%0A
-  
   public

Fix code style on ISocket.java