Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
bsideup committed Feb 22, 2017
1 parent 40d239a commit 1d31617
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,8 @@ public void connect(SocketAddress endpoint, int timeout) throws IOException {
@Override
public int read(byte[] bytes, int off, int len) throws IOException {
int read = file.read(bytes, off, len);
System.out.println("Received " + read + " bytes with body: " + new String(bytes, off, len));
System.out.println("Received " + read + " bytes");
System.out.println("Body: " + new String(bytes, off, len));
return read;
}

Expand All @@ -116,7 +117,8 @@ public int read() throws IOException {
public int read(byte[] bytes) throws IOException {
int read = file.read(bytes);

System.out.println("Received " + read + " bytes with body: " + new String(bytes, 0, read));
System.out.println("Received " + read + " bytes");
System.out.println("Body: " + new String(bytes, 0, read));
return read;
}
};
Expand Down

0 comments on commit 1d31617

Please sign in to comment.