Package java.io

Examples of java.io.DataOutputStream.writeInt()


            {
                data.writeLong(computeStructuralUID(vt.parent));
            }
            if (vt.hasWriteObject)
            {
                data.writeInt(2);
            }
            else
            {
                data.writeInt(1);
            }
View Full Code Here


            {
                data.writeInt(2);
            }
            else
            {
                data.writeInt(1);
            }
            List fieldList = new ArrayList(vt.fields.length);
            for (int i = 0; i < vt.fields.length; i++)
            {
                fieldList.add(vt.fields[i].javaField);
View Full Code Here

            DataOutputStream dos = new DataOutputStream(bos);


            try
            {
                dos.writeInt(arguments.size());
                for(Map.Entry<String,String> arg : arguments.entrySet())
                {
                    dos.writeUTF(arg.getKey());
                    dos.writeUTF(arg.getValue());
                }
View Full Code Here

         tmp = (this.VRPROTECT << 5);
         tmp |= ((this.DPO ? 1 : 0) << 4);
         tmp |= ((this.BYTCHK ? 1 : 0 << 1));
         out.writeByte(tmp);
        
         out.writeInt(this.lba);
         out.writeByte(this.groupNumber);
         out.writeShort(this.verificationLength);
         out.writeByte(super.getControl());

         return cdb.toByteArray();
View Full Code Here

      {
         out.writeByte(this.getResponseCode() & 0x7F); // RESPONSE CODE (wipe Reserved bit)
         out.writeByte(this.getSenseKey().value());
         out.writeByte(this.getSenseCode());
         out.writeByte(this.getSenseCodeQualifier());
         out.writeInt(0); // 3-byte reserved field, ADDITIONAL SENSE LENGTH = 0
      }
      catch (IOException e)
      {
         throw new RuntimeException("Unable to encode descriptor format sense data");
      }
View Full Code Here

      try
      {
         out.writeByte(OPERATION_CODE);
         out.writeByte(SERVICE_ACTION);
         out.writeInt(0);
         out.writeInt((int) getAllocationLength());
         out.writeByte(0);
         out.writeByte(super.getControl());

         return cdb.toByteArray();
View Full Code Here

      try
      {
         out.writeByte(OPERATION_CODE);
         out.writeByte(SERVICE_ACTION);
         out.writeInt(0);
         out.writeInt((int) getAllocationLength());
         out.writeByte(0);
         out.writeByte(super.getControl());

         return cdb.toByteArray();
      }
View Full Code Here

      {
         if (getCommand().getCommandDescriptorBlock() instanceof ReadCapacity10)
         {
            if (this.getDeviceCapacity() >= 0xFFFFFFFFL)
            {
               out.writeInt(-1);
            }
            else
            {
               out.writeInt((int) this.getDeviceCapacity());
            }
View Full Code Here

            {
               out.writeInt(-1);
            }
            else
            {
               out.writeInt((int) this.getDeviceCapacity());
            }
            out.writeInt(blockLength);
         }
         else if (getCommand().getCommandDescriptorBlock() instanceof ReadCapacity16)
         {
View Full Code Here

            }
            else
            {
               out.writeInt((int) this.getDeviceCapacity());
            }
            out.writeInt(blockLength);
         }
         else if (getCommand().getCommandDescriptorBlock() instanceof ReadCapacity16)
         {
            out.writeLong(this.getDeviceCapacity());
            out.writeInt(blockLength);
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.