Examples of readInt()


Examples of at.jku.sii.sqlitereader.io.ArrayDataInput.readInt()

  public static List<PayloadOverflowPage> readOverflowPages(SqliteDataBase db, int startPage) {
    List<PayloadOverflowPage> list = new ArrayList<PayloadOverflowPage>();
    int page = startPage;
    while (page > 0) {
      ArrayDataInput block = db.getPageBlock(page);
      int nextPage = block.readInt();
      block.annotateLastInt("nextPage", nextPage);

      int size = block.size() - 4;
      byte[] content = new byte[size];
      block.readFully(content);
View Full Code Here

Examples of at.jku.sii.sqlitereader.io.FileDataInput.readInt()

      assert (maxEmbedded == 64);
      byte minEmbedded = file.readByte("minEmbedded");
      assert (minEmbedded == 32);
      byte leafPayload = file.readByte("leafPayload");
      assert (leafPayload == 32);
      this.fileChangeCounter = file.readInt("fileChangeCounter");
      int storedNumPages = file.readInt("storedNumPages");

      this.firstFreeListPage = file.readInt("firstFreeListPage");
      this.numFreeListPages = file.readInt("numFreeListPages");
View Full Code Here

Examples of bm.core.io.SerializerInputStream.readInt()

            log.debug( "Call serialized" );
            final DataInputStream is = binding.endPost();
            final SerializerInputStream in = new SerializerInputStream( is );
            pe.setMessage( ResourceManager.getResource( "bm.net.rpc.ReadingResponse" ) );
            pe.dispatch();
            final int responseCode = in.readInt();
            final String responseMessage = in.readString();
            if( responseCode == Net.RC_SUCCESS )
            {
                return in.readNullableObject();
            }
View Full Code Here

Examples of cmp.LEDataStream.LEDataInputStream.readInt()

            int tempLength = in.read(tempEndian);
            if (((int)tempEndian[0]) == 0)tempIn.setLittleEndianMode(false);
            else tempIn.setLittleEndianMode(true);
           
            // read the datatype of the incoming data
            int tempType = tempIn.readInt();
           
            // select the correct parsing routine
            switch (tempType){
                case 1: tempShape = parseWKBPoint(tempIn); break;
                case 2: tempShape = parseWKBLineString(tempIn); break;
View Full Code Here

Examples of co.cask.cdap.common.io.BinaryDecoder.readInt()

    ByteArrayInputStream bis = new ByteArrayInputStream(data);
    Decoder decoder = new BinaryDecoder(bis);

    DatumReader<KeyIdentifier> reader = readerFactory.create(KEY_IDENTIFIER_TYPE,
                                                             KeyIdentifier.Schemas.getCurrentSchema());
    int readVersion = decoder.readInt();
    Schema readSchema = KeyIdentifier.Schemas.getSchemaVersion(readVersion);
    if (readSchema == null) {
      throw new IOException("Unknown schema version for KeyIdentifier: " + readVersion);
    }
    return reader.read(decoder, readSchema);
View Full Code Here

Examples of co.cask.cdap.common.io.Decoder.readInt()

    ByteArrayInputStream bis = new ByteArrayInputStream(data);
    Decoder decoder = new BinaryDecoder(bis);

    DatumReader<KeyIdentifier> reader = readerFactory.create(KEY_IDENTIFIER_TYPE,
                                                             KeyIdentifier.Schemas.getCurrentSchema());
    int readVersion = decoder.readInt();
    Schema readSchema = KeyIdentifier.Schemas.getSchemaVersion(readVersion);
    if (readSchema == null) {
      throw new IOException("Unknown schema version for KeyIdentifier: " + readVersion);
    }
    return reader.read(decoder, readSchema);
View Full Code Here

Examples of co.cask.tigon.io.BinaryDecoder.readInt()

      // No hash keys.
      return ImmutableMap.of();
    }
    ByteArrayInputStream bis = new ByteArrayInputStream(bytes, off, len);
    BinaryDecoder decoder = new BinaryDecoder(bis);
    int size = decoder.readInt();
    Map<String, Integer> hashKeys = Maps.newHashMapWithExpectedSize(size);
    while (size > 0) { // per avro spec, ther ecan be multiple blocks
      while (size-- > 0) {
        String key = decoder.readString();
        int value = decoder.readInt();
View Full Code Here

Examples of com.alibaba.dubbo.common.serialize.ObjectInput.readInt()

        ByteArrayInputStream byteArrayInputStream = new ByteArrayInputStream(
                byteArrayOutputStream.toByteArray());
        ObjectInput deserialize = serialization.deserialize(url, byteArrayInputStream);

        int i = deserialize.readInt();
        assertEquals(1, i);

        try {
            deserialize.readInt();
            fail();
View Full Code Here

Examples of com.android.dex.Dex.Section.readInt()

  public void parse(int offset) throws DecodeException {
    Section section = dex.openSection(offset);

    // TODO read as unsigned int
    int classAnnotationsOffset = section.readInt();
    int fieldsCount = section.readInt();
    int annotatedMethodsCount = section.readInt();
    int annotatedParametersCount = section.readInt();

    if (classAnnotationsOffset != 0) {
View Full Code Here

Examples of com.ardor3d.util.LittleEndianDataInput.readInt()

    public Image load(final InputStream is, final boolean flipVertically) throws IOException {
        final LittleEndianDataInput in = new LittleEndianDataInput(is);

        // Read and check magic word...
        final int dwMagic = in.readInt();
        if (dwMagic != getInt("DDS ")) {
            throw new Error("Not a dds file.");
        }
        logger.finest("Reading DDS file.");
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.