Package java.io

Examples of java.io.DataInputStream.readUnsignedShort()


         break;
         default:
            throw(new SocksException(Proxy.SOCKS_JUST_ERROR));
      }

      port = di.readUnsignedShort();

      if(addrType != SOCKS_ATYP_DOMAINNAME && doResolveIP){
         try{
            ip = InetAddress.getByName(host);
         }catch(UnknownHostException uh_ex){
View Full Code Here


        ssrc = stream.readInt() & RTPHeader.UINT_TO_LONG_CONVERT;

        fractionLost = stream.readUnsignedByte();

        numLost = (stream.readUnsignedShort() << 8) | stream.readUnsignedByte();

        xtndSeqNum = stream.readInt() & RTPHeader.UINT_TO_LONG_CONVERT;

        jitter = stream.readInt() & RTPHeader.UINT_TO_LONG_CONVERT;
View Full Code Here



        // Read the header values

        this.flags = stream.readUnsignedShort();

        this.sequence = stream.readUnsignedShort();

        this.timestamp = stream.readInt() & UINT_TO_LONG_CONVERT;
View Full Code Here

        // Read the header values

        this.flags = stream.readUnsignedShort();

        this.sequence = stream.readUnsignedShort();

        this.timestamp = stream.readInt() & UINT_TO_LONG_CONVERT;

        this.ssrc = stream.readInt() & UINT_TO_LONG_CONVERT;
View Full Code Here

                data, offset, length));

        // Read the header values

        this.flags = stream.readUnsignedShort();

        this.length = stream.readUnsignedShort();

        this.ssrc = stream.readInt() & RTPHeader.UINT_TO_LONG_CONVERT;
View Full Code Here

        // Read the header values

        this.flags = stream.readUnsignedShort();

        this.length = stream.readUnsignedShort();

        this.ssrc = stream.readInt() & RTPHeader.UINT_TO_LONG_CONVERT;

       
View Full Code Here

        DataOutputStream dataOut;
        byte[] in;

        InputStream is = socket.getInputStream();
        dataIn = new DataInputStream(is);
        inLength = dataIn.readUnsignedShort();
        in = new byte[inLength];
        dataIn.readFully(in);

        Message query;
        byte[] response = null;
View Full Code Here

      this.BYTCHK = ((tmp >>> 1) & 0x01) == 1;
      this.lba = in.readInt();
     
      tmp = in.readUnsignedByte();
      this.groupNumber = tmp & 0x1F;
      this.verificationLength = in.readUnsignedShort();
      super.setControl(in.readUnsignedByte());
   }

   public byte[] encode() throws IOException
   {
View Full Code Here

      DataInputStream in = new DataInputStream(new ByteBufferInputStream(input));

      int operationCode = in.readUnsignedByte();

      long msb = in.readUnsignedByte() & 0x1F;
      long lss = in.readUnsignedShort();
      setLogicalBlockAddress((msb << 16) | lss);

      setTransferLength(in.readUnsignedByte());
      if (getTransferLength() == 0)
      {
View Full Code Here

      }

      this.setPageCode(b1);

      // byte 2 - 3
      this.pageLength = in.readUnsignedShort();

      // identification descriptor list
      descriptorList = this.parseDescriptorList(in);
   }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.