Package java.io

Examples of java.io.DataInputStream.readInt()


         dis = new DataInputStream(in);
        
         if (trace) { log.trace("Stream is NOT DataInputStream - must be using HTTP transport"); }
      }
     
      int id = dis.readInt();
     
      PacketSupport packet = PacketSupport.createPacket(id);
     
      if (trace) { log.trace("Created packet " + packet); }
     
View Full Code Here


            //  Create an input stream
            in = new DataInputStream(
                new PullSourceInputStream(stream) );

            //  Read in the size of the video
            int w = in.readInt();
            int h = in.readInt();

            //  Read in the duration of the video (in nanos)
            duration = in.readLong();
View Full Code Here

            in = new DataInputStream(
                new PullSourceInputStream(stream) );

            //  Read in the size of the video
            int w = in.readInt();
            int h = in.readInt();

            //  Read in the duration of the video (in nanos)
            duration = in.readLong();

            //  Set the preferred size
View Full Code Here

      FileInputStream fin= new FileInputStream( path);
      BufferedInputStream bin= new BufferedInputStream( fin);
      DataInputStream din= new DataInputStream( bin);

      int n_targets= din.readInt();

      for( int i= 0; i < n_targets; i++) {
    String localPort= readString( din);
    String ip= readString( din);
    String port= readString( din);
View Full Code Here

      BufferedInputStream bin= new BufferedInputStream( fin);
      DataInputStream din= new DataInputStream( bin);

            local_data_port= readString( din);

      int n_targets= din.readInt();

      for( int i= 0; i < n_targets; i++) {
    String ip= readString( din);
    String port= readString( din);
View Full Code Here

                new FileInputStream(
                    new File(args[0]) ) );

            try {
                //  Read in the width/height/duration
                in.readInt();
                in.readInt();
                in.readLong();

                //  Read in the frames
                while(true) {
View Full Code Here

                    new File(args[0]) ) );

            try {
                //  Read in the width/height/duration
                in.readInt();
                in.readInt();
                in.readLong();

                //  Read in the frames
                while(true) {
                    //  Read in the length of the frame
View Full Code Here

        
         ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
                 
         DataInputStream dis = new DataInputStream(bis);
                
         int theId = dis.readInt();
        
         assertEquals(id, theId);
      }
     
      public void testSerialized() throws Exception
View Full Code Here

        
         ByteArrayInputStream bis = new ByteArrayInputStream(bytes);
                 
         DataInputStream dis = new DataInputStream(bis);
                
         int theId = dis.readInt();
        
         assertEquals(PacketSupport.SERIALIZED, theId);
      }
     
      // Requests
View Full Code Here

        DataInputStream stream = new DataInputStream(new ByteArrayInputStream(

                data, offset, length));

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

        fractionLost = stream.readUnsignedByte();

        numLost = (stream.readUnsignedShort() << 8) | stream.readUnsignedByte();
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.