Examples of position()


Examples of com.sun.sgs.impl.sharedutil.MessageBuffer.position()

    break;
   
      case SimpleSgsProtocol.SESSION_MESSAGE:
    ByteBuffer clientMessage =
        ByteBuffer.wrap(msg.getBytes(msg.limit() - msg.position()));
    if (protocolHandler == null) {
        // ignore message before authentication
        if (logger.isLoggable(Level.FINE)) {
      logger.log(
          Level.FINE,
View Full Code Here

Examples of com.taobao.gecko.core.buffer.IoBuffer.position()


    @Test
    public void testMakeHead() throws Exception {
        final IoBuffer head = this.fileMessageSet.makeHead(-1999, 100);
        assertEquals(0, head.position());
        assertTrue(head.hasRemaining());
        assertEquals("value 100 -1999\r\n", new String(head.array()));
    }

View Full Code Here

Examples of com.thoughtworks.excelparser.annotations.ExcelField.position()

    Field[] fields = clazz.getDeclaredFields();
    for (Field field : fields) {
      ExcelField excelField = field.getAnnotation(ExcelField.class);
      if (excelField != null) {
        field.setAccessible(true);
        fieldMap.put(excelField.position(), field);
      }
    }
    excelMapCache.put(clazz.getName(), fieldMap);
    return fieldMap;
  }
View Full Code Here

Examples of com.wordnik.swagger.annotations.Api.position()

  @Override
  public Integer getResourcePosition(RequestMappingInfo requestMappingInfo, HandlerMethod handlerMethod) {
    Class<?> controllerClass = handlerMethod.getBeanType();
    Api apiAnnotation = AnnotationUtils.findAnnotation(controllerClass, Api.class);
    if (null != apiAnnotation && !isBlank(apiAnnotation.value())) {
      return apiAnnotation.position();
    }
    return 0;
  }

  @Override
View Full Code Here

Examples of com.wordnik.swagger.annotations.ApiOperation.position()

  @Override
  public void execute(RequestMappingContext context) {
    int origPosition = (Integer) context.get("currentCount");
    Integer operationPosition = origPosition;
    ApiOperation apiOperation = context.getApiOperationAnnotation();
    if (null != apiOperation && apiOperation.position() > 0) {
      operationPosition = apiOperation.position();
    }
    context.put("position", operationPosition);
    int next = max((origPosition + 1), operationPosition);
    context.put("currentCount", next);
View Full Code Here

Examples of com.wordnik.swagger.model.ApiListingReference.position()

          newPath = "/" + newPath.substring(1);
        }
      }
      newPath += ".{format}";
      apiListingReferences.add(new ApiListingReference(newPath,
          apiListingReference.description(), apiListingReference
              .position()));
    }
    // there's no setter of path for ApiListingReference, we need to create
    // a new ResourceListing for new path
    serviceDocument = new ResourceListing(serviceDocument.apiVersion(),
View Full Code Here

Examples of com.wordnik.swagger.model.Operation.position()

        // for a testing purposes
        "summary by the test swagger test filter",
        operation.notes(),
        operation.responseClass(),
        operation.nickname(),
        operation.position(),
        operation.produces(),
        operation.consumes(),
        operation.protocols(),
        operation.authorizations(),
        operation.parameters(),
View Full Code Here

Examples of fi.jumi.core.ipc.buffer.IpcBuffer.position()

        protocol.start();
        exampleUsage(sendTo(protocol));
        protocol.close();

        // decode
        buffer.position(0);
        IpcReaders.decodeAll(protocol, spy.getListener());

        spy.verify();
    }
View Full Code Here

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

        for (SubMesh subMesh : mesh.subMeshes) {
            List<Integer> subMeshIndices = new ArrayList<>();
            List<Integer> subMeshTriangles = new ArrayList<>();
           
            in.position(subMesh.firstByte.longValue());
            for (long j = 0; j < subMesh.indexCount.longValue(); j++) {
                subMeshIndices.add(in.readUnsignedShort());
            }
           
            // read triangle strips if topology/isTriStrip is not zero
View Full Code Here

Examples of it.unimi.dsi.fastutil.io.FastBufferedInputStream.position()

          if ( DEBUG ) LOGGER.debug( "Setting markers <" + currStart + "," + currInter + ", " + currStop + ">" );
          descriptors.add( new TRECDocumentDescriptor( fileIndex, currStart, currInter, currStop ) );
          startedBlock = pastHeader = false;
        }
        else if ( startedBlock && !pastHeader && equals( buffer, l, DOCHDR_CLOSE ) ) {
          currInter = fbis.position();
          pastHeader = true;
        }
        oldPos = fbis.position();
      }
    }
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.