Package java.io

Examples of java.io.ObjectOutputStream.writeFloat()


  encoder.encode(ras) ;

  byte[] data = baos.toByteArray() ;

  ObjectOutputStream oos = new ObjectOutputStream(outputStream) ;
  oos.writeFloat(paramList.getFloatParameter("quality"));
  oos.writeBoolean(paramList.getBooleanParameter("qualitySet"));
  oos.writeObject(TileCodecUtils.serializeSampleModel(sm));

  Point location = new Point( ras.getMinX(), ras.getMinY() ) ;
  oos.writeObject( location ) ;
View Full Code Here


   
    oos.useProtocolVersion(ObjectStreamConstants.PROTOCOL_VERSION_2);
   
    oos.writeInt(1);
    oos.writeShort((short) 7);
    oos.writeFloat(9.96601f);
    oos.writeLong(-900000000000001l);
    oos.writeShort((short) -1);
    oos.writeDouble(Math.PI);
    oos.writeByte((byte) 'z');
    oos.writeDouble(Double.NaN);
View Full Code Here

        stream.writeObject(thisServicesLocators);
        stream.writeObject( marshalAttributes(this,thisServicesAttrs) );
        /* The current configuration parameters of this service */
        stream.writeLong(leaseBound);
        stream.writeInt(snapshotThresh);
        stream.writeFloat(snapshotWt);
        /* The current set of registrations */
        for(Iterator iter=registrationByID.values().iterator();iter.hasNext();)
        {
            stream.writeObject(iter.next());
        }//end loop
View Full Code Here

    try {
      oos.writeInt(300);
      oos.writeBoolean(true);
      oos.writeUTF("Questa e una prova di scrittura di una stringa");
      oos.writeFloat(3.0f);
      oos.writeLong(30000000L);
    } finally {
      oos.close();
      ba.close();
    }
View Full Code Here

        os.writeObject(BASICSTROKE);
       
        BasicStroke stroke=(BasicStroke) items[i];
       
        /** write out the raw elements of the BasicStroke */
        os.writeFloat(stroke.getLineWidth());
        os.writeInt(stroke.getEndCap());
        os.writeInt(stroke.getLineJoin());
        os.writeFloat(stroke.getMiterLimit());
        os.writeObject(stroke.getDashArray());
        os.writeFloat(stroke.getDashPhase());
 
View Full Code Here

       
        /** write out the raw elements of the BasicStroke */
        os.writeFloat(stroke.getLineWidth());
        os.writeInt(stroke.getEndCap());
        os.writeInt(stroke.getLineJoin());
        os.writeFloat(stroke.getMiterLimit());
        os.writeObject(stroke.getDashArray());
        os.writeFloat(stroke.getDashPhase());
      }else if(nextObj instanceof Rectangle2D){
        basicStrokes++;
        /** write out a flag to indicate this is a BasicStroke object */
 
View Full Code Here

        os.writeFloat(stroke.getLineWidth());
        os.writeInt(stroke.getEndCap());
        os.writeInt(stroke.getLineJoin());
        os.writeFloat(stroke.getMiterLimit());
        os.writeObject(stroke.getDashArray());
        os.writeFloat(stroke.getDashPhase());
      }else if(nextObj instanceof Rectangle2D){
        basicStrokes++;
        /** write out a flag to indicate this is a BasicStroke object */
        os.writeObject(RECT);

 
View Full Code Here

  encoder.encode(ras) ;

  byte[] data = baos.toByteArray() ;

  ObjectOutputStream oos = new ObjectOutputStream(outputStream) ;
  oos.writeFloat(paramList.getFloatParameter("quality"));
  oos.writeBoolean(paramList.getBooleanParameter("qualitySet"));
  oos.writeObject(TileCodecUtils.serializeSampleModel(sm));

  Point location = new Point( ras.getMinX(), ras.getMinY() ) ;
  oos.writeObject( location ) ;
View Full Code Here

/* 100 */     encoder.encode(ras);
/*     */
/* 102 */     byte[] data = baos.toByteArray();
/*     */
/* 104 */     ObjectOutputStream oos = new ObjectOutputStream(this.outputStream);
/* 105 */     oos.writeFloat(this.paramList.getFloatParameter("quality"));
/* 106 */     oos.writeBoolean(this.paramList.getBooleanParameter("qualitySet"));
/* 107 */     oos.writeObject(TileCodecUtils.serializeSampleModel(sm));
/*     */
/* 109 */     Point location = new Point(ras.getMinX(), ras.getMinY());
/* 110 */     oos.writeObject(location);
View Full Code Here

  stream.writeUTF(RegistrarImpl.class.getName());
  stream.writeInt(LOG_VERSION);
  stream.writeObject(myServiceID);
  stream.writeLong(eventID);
  stream.writeInt(logToSnapshotThresh);
  stream.writeFloat(snapshotWt);
  stream.writeLong(minMaxServiceLease);
  stream.writeLong(minMaxEventLease);
  stream.writeLong(minRenewalInterval);
  stream.writeInt(unicastPort);
  stream.writeObject(memberGroups);
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.