Code example for DataInputStream

Methods: readFloatreadInt

0
    } 
    public static GestureBox deserialize(DataInputStream in) throws IOException {
         
 
        // Gesture ID 
         int inx= in.readInt();
         int iny= in.readInt();
         int inangle= in.readInt();
         int insize= in.readInt();
         int color=in.readInt();
         float strokewidth=in.readFloat();
         Paint mypaint=new Paint();
         mypaint.setStrokeWidth(strokewidth);
         mypaint.setColor(color);
        return new GestureBox(Gesture.deserialize(in),inx,iny,insize,inangle,mypaint);
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java