Package java.io

Examples of java.io.ObjectInputStream.readFloat()


        /** 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


        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);

        nextObject=new PdfTexturePaint(img,anchor);
View Full Code Here

       
        /**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);

        nextObject=new PdfTexturePaint(img,anchor);
       
View Full Code Here

        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

/*  98 */     byte[] data = null;
/*     */
/* 100 */     ObjectInputStream ois = new ObjectInputStream(this.inputStream);
/*     */     try
/*     */     {
/* 104 */       this.paramList.setParameter("quality", ois.readFloat());
/* 105 */       this.paramList.setParameter("qualitySet", ois.readBoolean());
/* 106 */       sm = TileCodecUtils.deserializeSampleModel(ois.readObject());
/* 107 */       location = (Point)ois.readObject();
/* 108 */       data = (byte[])ois.readObject();
/*     */     }
View Full Code Here

  if (stream.readInt() != LOG_VERSION)
      throw new IOException("wrong log format version");
  myServiceID = (ServiceID)stream.readObject();
  eventID = stream.readLong();
  logToSnapshotThresh = stream.readInt();
  snapshotWt = stream.readFloat();
  minMaxServiceLease = stream.readLong();
  minMaxEventLease = stream.readLong();
  minRenewalInterval = stream.readLong();
  unicastPort = stream.readInt();
  memberGroups = (String[])stream.readObject();
View Full Code Here

                case LongType:
                    return ois.readLong();

                case FloatType:
                    return ois.readFloat();

                case DoubleType:
                    return ois.readDouble();

                case KeyType:
View Full Code Here

                        Array.set(array, i, ois.readLong());
                    return array;

                case FloatType:
                    for (int i = 0; i < length; i++)
                        Array.set(array, i, ois.readFloat());
                    return array;

                case DoubleType:
                    for (int i = 0; i < length; i++)
                        Array.set(array, i, ois.readDouble());
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

      obj = new ObjectInputStream(in);
      drawGrid = obj.readBoolean();
      drawLegend = obj.readBoolean();
      drawStats = obj.readBoolean();
      parent.triggers = new Triggers(parent, (String) obj.readObject(), (String) obj.readObject(), (String) obj.readObject());
      pingInterval = obj.readFloat();
      parent.recentFiles = (Vector<String>) obj.readObject();
      parent.currentFile = (String) obj.readObject();
      types = (Vector<String>) obj.readObject();
      imageURLs = (Vector<String>) obj.readObject();
      openLast = obj.readBoolean();
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.