Package java.io

Examples of java.io.ObjectInputStream.readFloat()


        ObjectInputStream ois = new ObjectInputStream(inputStream);

        try {
      // read the quality and qualitySet from the stream
      paramList.setParameter("quality", ois.readFloat());
      paramList.setParameter("qualitySet", ois.readBoolean());
            sm = TileCodecUtils.deserializeSampleModel(ois.readObject());
      location = (Point)ois.readObject();
            data = (byte[]) ois.readObject();
        }
View Full Code Here


                                    = (MarshalledObject[])stream.readObject();
        thisServicesAttrs = unmarshalAttributes(this, marshalledAttrs);
        /* Retrieve the current configuration parameters of this service */
        leaseBound     = stream.readLong();
        snapshotThresh = stream.readInt();
        snapshotWt     = stream.readFloat();
        RegistrationInfo regInfo;
        while ((regInfo = (RegistrationInfo)stream.readObject()) != null) {
            regInfo.seqNum += Integer.MAX_VALUE;
            addRegistration(regInfo);
        }//end loop
View Full Code Here

      type=(Integer) os.readObject();
     
      if(type.compareTo(BASICSTROKE)==0){
       
        /** retrieve the raw data from the BasicStroke */
        float w = os.readFloat();
        int current_line_cap_style = os.readInt();
        int current_line_join_style = os.readInt();
        float mitre_limit = os.readFloat();
        float[] current_line_dash_array = (float[]) os.readObject();
        float current_line_dash_phase = os.readFloat();
View Full Code Here

       
        /** retrieve the raw data from the BasicStroke */
        float w = os.readFloat();
        int current_line_cap_style = os.readInt();
        int current_line_join_style = os.readInt();
        float mitre_limit = os.readFloat();
        float[] current_line_dash_array = (float[]) os.readObject();
        float current_line_dash_phase = os.readFloat();
       
        /** create a new BasicStroke object based on the raw data */
        nextObject = new BasicStroke( w, current_line_cap_style, current_line_join_style, mitre_limit, current_line_dash_array, current_line_dash_phase );
View Full Code Here

        float w = os.readFloat();
        int current_line_cap_style = os.readInt();
        int current_line_join_style = os.readInt();
        float mitre_limit = os.readFloat();
        float[] current_line_dash_array = (float[]) os.readObject();
        float current_line_dash_phase = os.readFloat();
       
        /** create a new BasicStroke object based on the raw data */
        nextObject = new BasicStroke( w, current_line_cap_style, current_line_join_style, mitre_limit, current_line_dash_array, current_line_dash_phase );
      }else if (type.compareTo(RECT)==0){

View Full Code Here

       
        /** create a new BasicStroke object based on the raw data */
        nextObject = new BasicStroke( w, current_line_cap_style, current_line_join_style, mitre_limit, current_line_dash_array, current_line_dash_phase );
      }else if (type.compareTo(RECT)==0){

        float x = os.readFloat();
        float y = os.readFloat();
        float w = os.readFloat();
        float h = os.readFloat();

        nextObject=new Rectangle2D.Float(x,y,w,h);
View Full Code Here

        /** create a new BasicStroke object based on the raw data */
        nextObject = new BasicStroke( w, current_line_cap_style, current_line_join_style, mitre_limit, current_line_dash_array, current_line_dash_phase );
      }else if (type.compareTo(RECT)==0){

        float x = os.readFloat();
        float y = os.readFloat();
        float w = os.readFloat();
        float h = os.readFloat();

        nextObject=new Rectangle2D.Float(x,y,w,h);

View Full Code Here

        nextObject = new BasicStroke( w, current_line_cap_style, current_line_join_style, mitre_limit, current_line_dash_array, current_line_dash_phase );
      }else if (type.compareTo(RECT)==0){

        float x = os.readFloat();
        float y = os.readFloat();
        float w = os.readFloat();
        float h = os.readFloat();

        nextObject=new Rectangle2D.Float(x,y,w,h);

      }else if(type.compareTo(BUFFERED_IMAGE)==0){
View Full Code Here

      }else if (type.compareTo(RECT)==0){

        float x = os.readFloat();
        float y = os.readFloat();
        float w = os.readFloat();
        float h = os.readFloat();

        nextObject=new Rectangle2D.Float(x,y,w,h);

      }else if(type.compareTo(BUFFERED_IMAGE)==0){
       
View Full Code Here

       
        /** read the bytes in and rebuild the image */
        BufferedImage img = ImageIO.read(new ByteArrayInputStream(bytes));
       
        /**and the rectangle*/
        float x = os.readFloat();
        float y = os.readFloat();
        float w = os.readFloat();
        float h = os.readFloat();

        Rectangle2D anchor=new Rectangle2D.Float(x,y,w,h);
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.