Examples of readInt()


Examples of davaguine.jmac.tools.ByteArrayReader.readInt()

        file.seek(file.length() - APE_TAG_FOOTER_BYTES);
        APETagFooter tag = new APETagFooter();
        try {
            final ByteArrayReader reader = new ByteArrayReader(file, APE_TAG_FOOTER_BYTES);
            tag.m_cID = reader.readString(8, "US-ASCII");
            tag.m_nVersion = reader.readInt();
            tag.m_nSize = reader.readInt();
            tag.m_nFields = reader.readInt();
            tag.m_nFlags = reader.readInt();
            return tag;
        } catch (EOFException e) {
View Full Code Here

Examples of de.hpi.eworld.visualizer.simulation.traci.common.TraciInputStream.readInt()

   
    TraciInputStream payload = command.getPayload();
   
    int flag = payload.readByte();
    int domain = payload.readByte();
    int domainID = payload.readInt();
    int variable = payload.readByte();
    int valueDataType = payload.readByte();
    Object value = payload.readTraciObject(valueDataType);
   
    return new ScenarioCommandCodec(
View Full Code Here

Examples of de.uniluebeck.itm.tcpip.Storage.readInt()

  @Override
  protected ControlledLinks readValue(Command resp)
      throws TraCIException {
    final Storage content = resp.content();
    Utils.checkType(content, Constants.TYPE_COMPOUND);
    content.readInt(); // ignore data length
    try {
      return new ControlledLinks(content, laneRepo);
    } catch (IOException e) {
      throw new TraCIException(e.getMessage());
    }
View Full Code Here

Examples of edu.stanford.nlp.io.InDataStreamFile.readInt()

  /** Currently unused */
  @SuppressWarnings("unused")
  private void read(String filename) {
    try {
      InDataStreamFile rF = new InDataStreamFile(filename);
      xSize = rF.readInt();
      ySize = rF.readInt();
      int number = rF.readInt();
      px = new int[xSize];
      py = new int[ySize];
      pxy = new int[xSize][ySize];
View Full Code Here

Examples of es.upv.simulator.Tokenizer.readInt()

            Tokenizer tok = new Tokenizer(fMuestra);
            tok.whitespaceChars(58, 255);
            tok.wordChars(48, 57);
            valorMax = tok.readFloat();
            valorMin = tok.readFloat();
            nMuestras = tok.readInt();
            velozMuestreo = tok.readInt();
            int longitud = nMuestras * 2;
            byte buf[] = new byte[longitud];
            fMuestra.skip(1L);
            int num = fMuestra.read(buf, 0, longitud);
View Full Code Here

Examples of eu.stratosphere.runtime.io.serialization.DataInputDeserializer.readInt()

    }

    try {
      DataInputDeserializer deserializer = new DataInputDeserializer(this.serializedEventList);

      int numEvents = deserializer.readInt();
      ArrayList<AbstractEvent> events = new ArrayList<AbstractEvent>(numEvents);

      for (int i = 0; i < numEvents; i++) {
        String className = deserializer.readUTF();
        Class<? extends AbstractEvent> clazz;
View Full Code Here

Examples of fr.dyade.aaa.jndi2.msg.IOControl.readInt()

                               socket.getPort());
            }

            try {
              IOControl ioCtrl = new IOControl(socket);
              int rid = ioCtrl.readInt();
              if (Trace.logger.isLoggable(BasicLevel.DEBUG))
                Trace.logger.log(BasicLevel.DEBUG, " -> request id = " + rid);
              switch (rid) {
              case HARequestManager.IDEMPOTENT:
                Channel.sendTo(
View Full Code Here

Examples of hprose.io.HproseReader.readInt()

            tag = reader.checkTags((char) HproseTags.TagList + "" +
                                   (char) HproseTags.TagEnd + "" +
                                   (char) HproseTags.TagCall);
            if (tag == HproseTags.TagList) {
                reader.reset();
                count = reader.readInt(HproseTags.TagOpenbrace);
                if (methods != null) {
                    remoteMethod = methods.get(aliasname, count);
                }
                if (remoteMethod == null) {
                    remoteMethod = getGlobalMethods().get(aliasname, count);
View Full Code Here

Examples of htsjdk.tribble.util.LittleEndianInputStream.readInt()

                bdis = new DataInputStream(new ByteArrayInputStream(buffer));

            // Get zoom level information
            if(isLowToHigh){
                reductionLevel = lbdis.readInt();
                reserved = lbdis.readInt();
                dataOffset = lbdis.readLong();
                indexOffset = lbdis.readLong();
            }
            else {
                reductionLevel = bdis.readInt();
View Full Code Here

Examples of info.ata4.io.DataInputReader.readInt()

        try (BufferedInputStream bis = new BufferedInputStream(is)) {
            DataInputReader in = DataInputReader.newReader(bis);

            // read header
            int dbVersion = in.readInt();

            if (dbVersion != VERSION) {
                throw new RuntimeException("Wrong database version");
            }
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.