sipcapture / hep-java

HEP: JAVA implementation of HEP/EEP Encapsulation Protocol
http://sipcapture.org
GNU General Public License v3.0
5 stars 5 forks source link

simplified sample usage by using DataInputStream instead of InputStream #4

Closed nehararora closed 7 years ago

nehararora commented 7 years ago

Fixed bug in the sample usage where since signed bytes were being read in, the palyoad length could be different from actual payload length. By using the DataInputStream.readUnsignedShort() method we avoid this.