Skip to content

Commit

Permalink
Added protected void getMessage (byte[] b, int offset, int len) throw…
Browse files Browse the repository at this point in the history
…s IOException

(required by GZIPChannel)
  • Loading branch information
ar committed Mar 11, 2006
1 parent 1383035 commit 85db7e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion jpos/src/main/org/jpos/iso/BaseChannel.java
Expand Up @@ -418,6 +418,9 @@ protected void sendMessageTrailler(ISOMsg m, byte[] b) throws IOException
sendMessageTrailler (m, b.length);
}
protected void getMessageTrailler() throws IOException { }
protected void getMessage (byte[] b, int offset, int len) throws IOException {
serverIn.readFully(b, offset, len);
}
protected int getMessageLength() throws IOException, ISOException {
return -1;
}
Expand Down Expand Up @@ -536,7 +539,7 @@ else if (len > 0 && len <= 10000) {
len -= header.length;
}
b = new byte[len];
serverIn.readFully(b, 0, len);
getMessage (b, 0, len);
getMessageTrailler();
}
else
Expand Down

0 comments on commit 85db7e9

Please sign in to comment.