Examples of readInt()


Examples of org.apache.poi.poifs.filesystem.DocumentInputStream.readInt()

   
    public EncryptionInfo(DirectoryNode dir) throws IOException {
        DocumentInputStream dis = dir.createDocumentInputStream("EncryptionInfo");
        versionMajor = dis.readShort();
        versionMinor = dis.readShort();
        encryptionFlags = dis.readInt();
       
        EncryptionMode encryptionMode;
        if (versionMajor == agile.versionMajor
            && versionMinor == agile.versionMinor
            && encryptionFlags == agile.encryptionFlags) {
View Full Code Here

Examples of org.apache.poi.util.LittleEndianInput.readInt()

    specialCachedValue = SpecialCachedValue.create(valueLongBits);
    if (specialCachedValue == null) {
      field_4_value = Double.longBitsToDouble(valueLongBits);
    }

    field_6_zero = in.readInt();

    int field_7_expression_len = in.readShort(); // this length does not include any extra array data
    int nBytesAvailable = in.available();
    field_8_parsed_expr = Formula.read(field_7_expression_len, in, nBytesAvailable);
  }
View Full Code Here

Examples of org.apache.qpid.client.message.JMSBytesMessage.readInt()

        try
        {
            JMSBytesMessage bm = TestMessageHelper.newJMSBytesMessage();
            bm.writeInt(99);
            bm.reset();
            bm.readInt();
            // should throw
            bm.readInt();
            fail("expected exception did not occur");
        }
        catch (MessageEOFException m)
View Full Code Here

Examples of org.apache.qpid.client.message.JMSStreamMessage.readInt()

    public void testWriteInt() throws Exception
    {
        JMSStreamMessage bm = TestMessageHelper.newJMSStreamMessage();
        bm.writeInt(10);
        bm.reset();
        int val = bm.readInt();
        assertTrue(val == 10);
    }

    public void testWriteString() throws Exception
    {
View Full Code Here

Examples of org.apache.xindice.xml.XMLCompressedInput.readInt()

            comp.dataLocation(pos, len);
         }
         content.startElement(nsURI !=null ? nsURI : "", localName, elemName, attrs);
      }
      else
         in.readInt();

      while ( !interrupt && bis.available() > 0 ) {
         pos = bis.getPos();
         /* TODO why is it used for? byte signature = */ in.readSignature();
         len = in.readContentSize();
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQBytesMessage.readInt()

  public void testReadInt() {
    ActiveMQBytesMessage msg = new ActiveMQBytesMessage();
    try {
      msg.writeInt(3000);
      msg.reset();
      assertTrue(msg.readInt() == 3000);
    } catch (JMSException jmsEx) {
      jmsEx.printStackTrace();
      assertTrue(false);
    }
  }
View Full Code Here

Examples of org.codehaus.activemq.message.ActiveMQStreamMessage.readInt()

    ActiveMQStreamMessage msg = new ActiveMQStreamMessage();
    try {
      int test = 4;
      msg.writeInt(test);
      msg.reset();
      assertTrue(msg.readInt()==test);
      msg.reset();
      assertTrue(msg.readLong()==test);
      msg.reset();
      assertTrue(msg.readString().equals(new Integer(test).toString()));
    }catch(JMSException jmsEx){
View Full Code Here

Examples of org.drools.core.common.DroolsObjectInput.readInt()

            pkg.getDialectRuntimeRegistry().onAdd(this.rootClassLoader);
        }

        // PackageCompilationData must be restored before Rules as it has the ClassLoader needed to resolve the generated code references in Rules
        this.id = (String) droolsStream.readObject();
        this.workingMemoryCounter.set(droolsStream.readInt());

        this.processes = (Map<String, Process>) droolsStream.readObject();
        Class cls = null;
        try {
            cls = droolsStream.getParentClassLoader().loadClass(droolsStream.readUTF());
View Full Code Here

Examples of org.elasticsearch.common.io.stream.BytesStreamInput.readInt()

        BytesStreamInput in = new BytesStreamInput(out.copiedByteArray());
        assertThat(in.readBoolean(), equalTo(false));
        assertThat(in.readByte(), equalTo((byte) 1));
        assertThat(in.readShort(), equalTo((short) -1));
        assertThat(in.readInt(), equalTo(-1));
        assertThat(in.readVInt(), equalTo(2));
        assertThat(in.readLong(), equalTo((long) -3));
        assertThat(in.readVLong(), equalTo((long) 4));
        assertThat((double) in.readFloat(), closeTo(1.1, 0.0001));
        assertThat(in.readDouble(), closeTo(2.2, 0.0001));
View Full Code Here

Examples of org.elasticsearch.common.io.stream.HandlesStreamInput.readInt()

        out.writeUTF(lowerThresholdValue);

        HandlesStreamInput in = new HandlesStreamInput(new BytesStreamInput(bytesOut.copiedByteArray()));
        assertThat(in.readUTF(), equalTo(lowerThresholdValue));
        assertThat(in.readUTF(), equalTo(higherThresholdValue));
        assertThat(in.readInt(), equalTo(1));
        assertThat(in.readUTF(), equalTo("else"));
        assertThat(in.readUTF(), equalTo(higherThresholdValue));
        assertThat(in.readUTF(), equalTo(lowerThresholdValue));
    }
}
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.